firmware: arm_scmi: Add support for v3.2 NEGOTIATE_PROTOCOL_VERSION
authorCristian Marussi <cristian.marussi@arm.com>
Wed, 14 Feb 2024 18:30:01 +0000 (18:30 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 22 Feb 2024 08:17:10 +0000 (08:17 +0000)
commit8c80c42ad4014cc84bdcd4d5586730536f76f888
treed7ce8da75b4fb29a257d8f9d9070714163498ac5
parenta9c049f47e06cebeefff33a27ae7111818950ab9
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>
drivers/firmware/arm_scmi/driver.c
drivers/firmware/arm_scmi/protocols.h