diff options
author | Cristian Marussi <cristian.marussi@arm.com> | 2024-02-14 18:30:01 +0000 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2024-02-22 08:17:10 +0000 |
commit | 8c80c42ad4014cc84bdcd4d5586730536f76f888 (patch) | |
tree | d7ce8da75b4fb29a257d8f9d9070714163498ac5 /drivers/firmware/arm_scmi/protocols.h | |
parent | a9c049f47e06cebeefff33a27ae7111818950ab9 (diff) | |
download | lwn-8c80c42ad4014cc84bdcd4d5586730536f76f888.tar.gz lwn-8c80c42ad4014cc84bdcd4d5586730536f76f888.zip |
firmware: arm_scmi: Add support for v3.2 NEGOTIATE_PROTOCOL_VERSION
Freshly introduced NEGOTIATE_PROTOCOL_VERSION allows the agent to ascertain
upfront if a specific protocol(usually older) version is supported by the
platform.
It is used by the agent in case the platform has advertised the support of
a newer protocol version than the latest version supported by the agent,
since backward compatibility cannot be automatically assumed.
Emit a warning about possible incompatibility when negotiation was not
possible or just print the successfully negotiated protocol.
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20240214183006.3403207-3-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware/arm_scmi/protocols.h')
-rw-r--r-- | drivers/firmware/arm_scmi/protocols.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/firmware/arm_scmi/protocols.h b/drivers/firmware/arm_scmi/protocols.h index 26a3edd49fea..693019fff0f6 100644 --- a/drivers/firmware/arm_scmi/protocols.h +++ b/drivers/firmware/arm_scmi/protocols.h @@ -33,6 +33,7 @@ enum scmi_common_cmd { PROTOCOL_VERSION = 0x0, PROTOCOL_ATTRIBUTES = 0x1, PROTOCOL_MESSAGE_ATTRIBUTES = 0x2, + NEGOTIATE_PROTOCOL_VERSION = 0x10, }; /** |