firmware: arm_scmi: Add clock check for extended config support
authorCristian Marussi <cristian.marussi@arm.com>
Wed, 14 Feb 2024 18:30:02 +0000 (18:30 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 22 Feb 2024 08:17:10 +0000 (08:17 +0000)
commite4ad2b0130eff1cc72f93ea7fd184b0e420f0736
treefc9e91d0251f51890aa16c925a985a06cbf5749b
parent8c80c42ad4014cc84bdcd4d5586730536f76f888
firmware: arm_scmi: Add clock check for extended config support

SCMI v3.2 added support to set/get clock custom OEM types; such support is
conditionally present, though, depending on an extended config attribute
bit possibly advertised by the platform server on a per-domain base.

Add a check to verify if OEM types are supported before allowing any kind
of OEM-specific get/set operation. Also add a check around all the new
v3.2 clock features.

Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20240214183006.3403207-4-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/clock.c
include/linux/scmi_protocol.h