WSL2-Linux-Kernel/drivers/firmware/arm_scmi
Cristian Marussi d4f9dddd21 firmware: arm_scmi: Add dynamic scmi devices creation
Having added the support for SCMI protocols as modules in order to let
vendors extend the SCMI core with their own additions it seems odd to
then force SCMI drivers built on top to use a static device table to
declare their devices since this way any new SCMI drivers addition
would need the core SCMI device table to be updated too.

Remove the static core device table and let SCMI drivers to simply declare
which device/protocol pair they need at initialization time: the core will
then take care to generate such devices dynamically during platform
initialization or at module loading time, as long as the requested
underlying protocol is defined in the devicetree.

Link: https://lore.kernel.org/r/20210316124903.35011-39-cristian.marussi@arm.com
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
2021-03-30 16:35:16 +01:00
..
Makefile firmware: arm_scmi: Add voltage domain management protocol support 2020-11-20 14:55:48 +00:00
base.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
bus.c firmware: arm_scmi: Add dynamic scmi devices creation 2021-03-30 16:35:16 +01:00
clock.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
common.h firmware: arm_scmi: Add dynamic scmi devices creation 2021-03-30 16:35:16 +01:00
driver.c firmware: arm_scmi: Add dynamic scmi devices creation 2021-03-30 16:35:16 +01:00
mailbox.c firmware: arm_scmi: Fix NULL pointer dereference in mailbox_chan_free 2020-09-09 10:01:21 +01:00
notify.c firmware: arm_scmi: Rename non devres notify_ops 2021-03-30 16:35:16 +01:00
notify.h firmware: arm_scmi: Cleanup events registration transient code 2021-03-30 16:35:15 +01:00
perf.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
power.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
reset.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
scmi_pm_domain.c firmware: arm_scmi: Port genpd driver to the new scmi_power_proto_ops interface 2021-03-29 10:00:35 +01:00
sensors.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
shmem.c firmware: arm_scmi: Rename .clear_notification() transport_ops 2020-04-20 17:25:26 +01:00
smc.c firmware: arm_scmi: Augment SMC/HVC to allow optional interrupt 2021-01-06 09:02:32 +00:00
system.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00
voltage.c firmware: arm_scmi: Add protocol modularization support 2021-03-30 16:35:16 +01:00