[PATCH 11/11] [DEBUG][HACK] firmware: arm_scmi: force implemented protocol 0x99
From: Cristian Marussi
Date: Wed Oct 14 2020 - 11:07:30 EST
Force custom protocol 0x99 as implemented for testing purposes.
Signed-off-by: Cristian Marussi <cristian.marussi@xxxxxxx>
---
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