firmware: arm_scmi: Add clock .state_get support to pre-v3.2
authorCristian Marussi <cristian.marussi@arm.com>
Sat, 26 Aug 2023 12:53:06 +0000 (13:53 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 20 Sep 2023 14:01:40 +0000 (15:01 +0100)
commit5b8a8ca37e4949d063b02c0aabd9a258585f3f5f
tree72a5eb9ac60eb3b3ce32ac03023e714bc10f7aa7
parent34592bf0a5cb0681ce3d64de5598951768f43328
firmware: arm_scmi: Add clock .state_get support to pre-v3.2

Support clock .state_get operation against SCMI platform servers that do
not support v3.2 CONFIG_GET dedicated command: while talking with these
platforms the command CLOCK_ATTRIBUTES can be used to gather the current
clock states.

Note that, in case of shared resources, the retrieved clock state 'flavour'
(virtual vs physical) depends on the backend SCMI platform server specific
kind of implementation.

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