
Now that we have the Base protocol support, we will be able to add a couple of checks so that we will make sure that U-Boot scmi drivers work as expected. - check if SCMI server (firmware) supports the protocol - check if SCMI server implements an expected version of protocol
Although adding these checks was one of my objectives in supporting the Base protocol, this patch series is marked as RFC for now because I have no confidence about what exact version the existing drivers are based on. (I temporarily assigned the version numbers in [1].)
Test ==== The patch series was tested on the following platforms: * sandbox
Prerequisite: ============= * This patch series is based on my previous patch of base protocol support[1]
[1] https://lists.denx.de/pipermail/u-boot/2023-July/524811.html
Change history: =============== RFC (Jul, 28, 2023) * initial release
AKASHI Takahiro (3): firmware: scmi: add a check against availability of protocols firmware: scmi: add PROTOCOL_VERSION support for existing protocols on sandbox firmware: scmi: add a sanity check against protocol version
drivers/clk/clk_scmi.c | 6 ++ drivers/firmware/scmi/sandbox-scmi_agent.c | 80 ++++++++++++++++++++++ drivers/firmware/scmi/scmi_agent-uclass.c | 41 ++++++++++- drivers/power/regulator/scmi_regulator.c | 6 ++ drivers/reset/reset-scmi.c | 14 +++- include/scmi_protocols.h | 6 ++ 6 files changed, 149 insertions(+), 4 deletions(-)