firmware: arm_scmi: Implement clock get permissions
authorPeng Fan <peng.fan@nxp.com>
Sun, 21 Jan 2024 11:09:00 +0000 (19:09 +0800)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 20 Feb 2024 06:29:43 +0000 (06:29 +0000)
commitdc36561e1548a8ca93b34ef385da03c289ec5ac0
treee5141b1a9001c5a8a5a1db9bd27220a753843551
parent2858f6e5f06440d6b9e9c3f57bc68915344830a9
firmware: arm_scmi: Implement clock get permissions

ARM SCMI v3.2 introduces clock get permission command. To implement the
same let us stash the values of those permissions in the scmi_clock_info.
They indicate if the operation is forbidden or not.

If the CLOCK_GET_PERMISSIONS command is not supported, the default
permissions are set to allow the operations, otherwise they will be set
according to the response of CLOCK_GET_PERMISSIONS from the SCMI
platform firmware.

Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20240121110901.1414856-1-peng.fan@oss.nxp.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/clock.c
include/linux/scmi_protocol.h