firmware: arm_scmi: Support only one single system power device
authorCristian Marussi <cristian.marussi@arm.com>
Mon, 4 Jul 2022 10:19:30 +0000 (11:19 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 13:28:42 +0000 (14:28 +0100)
commita0db3962fb33564017b067255c20828632145c36
tree99fa50066bd99590712e8e2236f48317ec352cbc
parentb60e088682b74eca03f322a3b099a234b8f2fb1d
firmware: arm_scmi: Support only one single system power device

In order to minimize SCMI platform fw-side complexity, only one single SCMI
platform should be in charge of SCMI SystemPower protocol communications
with the OSPM. Enforce the existence of one single unique device associated
with SystemPower protocol across any possible number of SCMI platforms, and
warn if a system tries to register different SystemPower devices from
multiple platforms.

Link: https://lore.kernel.org/r/20220704101933.2981635-2-cristian.marussi@arm.com
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/driver.c