]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: arm_scmi: Add support for multiple device per protocol
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 21 Dec 2018 18:08:08 +0000 (18:08 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 24 Dec 2019 11:35:48 +0000 (11:35 +0000)
commit88ff58123f1f3fbb2c15f8694e7b691084d4efa6
tree544ff2496e7747bb5364588b637474aff4f9644a
parent47599c6298943ede4662b5e31dfe375feac1b48a
firmware: arm_scmi: Add support for multiple device per protocol

Currently only one scmi device is created for each protocol enumerated.
However, there is requirement to make use of some procotols by multiple
kernel subsystems/frameworks. One such example is SCMI PERFORMANCE
protocol which can be used by both cpufreq and devfreq drivers.
Similarly, SENSOR protocol may be used by hwmon and iio subsystems,
and POWER protocol may be used by genpd and regulator drivers.

In order to achieve that, let us extend the scmi bus to match based
not only protocol id but also the scmi device name if one is available.

Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/bus.c
drivers/firmware/arm_scmi/driver.c
include/linux/scmi_protocol.h