Force custom protocol 0x99 as implemented for testing purposes.

Signed-off-by: Cristian Marussi <cristian.maru...@arm.com>
---
 drivers/firmware/arm_scmi/base.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/firmware/arm_scmi/base.c b/drivers/firmware/arm_scmi/base.c
index 8d7214fd2187..b0036111e287 100644
--- a/drivers/firmware/arm_scmi/base.c
+++ b/drivers/firmware/arm_scmi/base.c
@@ -356,6 +356,8 @@ static int scmi_base_protocol_init(const struct scmi_handle 
*h,
        scmi_base_vendor_id_get(handle, true);
        scmi_base_implementation_version_get(handle);
        scmi_base_implementation_list_get(handle, prot_imp);
+       handle->version->num_protocols++;
+       prot_imp[handle->version->num_protocols] = SCMI_PROTOCOL_CUSTOM_DUMMY;
        scmi_setup_protocol_implemented(handle, prot_imp);
 
        dev_info(dev, "SCMI Protocol v%d.%d '%s:%s' Firmware version 0x%x\n",
-- 
2.17.1

Reply via email to