firmware: arm_scmi: Check CLOCK_RATE_SET_COMPLETE async response
authorCristian Marussi <cristian.marussi@arm.com>
Wed, 30 Mar 2022 15:05:36 +0000 (16:05 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 28 Apr 2022 17:22:51 +0000 (18:22 +0100)
commitc7e223f5c736745967e6b6e5124489d81be111d2
tree562c3bef9a66c84dce3f5b9ff6842640cd01dbca
parent992be5d3c818fcc277db246cb409659ca82abdbe
firmware: arm_scmi: Check CLOCK_RATE_SET_COMPLETE async response

When CLOCK_RATE_SET command is issued in asynchronous mode the delayed
response CLOCK_RATE_SET_COMPLETE comes back once the SCMI platform has
effectively operated the requested change: such delayed response carries
also the clock ID and the final clock rate that has been set.

As an aid to debug issues, check that the clock ID in the delayed
response matches the expected one and debug print the rate value.

Link: https://lore.kernel.org/r/20220330150551.2573938-8-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/clock.c