[PATCH 11/11] [DEBUG][HACK] firmware: arm_scmi: force implemented protocol 0x99

Cristian Marussi cristian.marussi at arm.com
Wed Oct 14 11:05:45 EDT 2020


Force custom protocol 0x99 as implemented for testing purposes.

Signed-off-by: Cristian Marussi <cristian.marussi at 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




More information about the linux-arm-kernel mailing list