Skip to contentSkip to conversation

firmware: arm_scmi: Remove inappropriate error log.

PATCH New xinglong.yang 1 participant 1 message Nov 1, 2023 System control & power/management interface (SCPI/SCMI) Message Protocol drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firmware: arm_scmi: Remove inappropriate error log.

The platform may not support fastchannel, but this is a legal operation.

-Before this patch, when the platform not support fastchannel, goto err_xfer will print "Failed to ...". This log is misleading.

-With this patch, when the fastchannel is not been supported, the "Failed to ..." log will be skipped.

---
 drivers/firmware/arm_scmi/driver.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/firmware/arm_scmi/driver.c +5 -1
index b5957cc12fee..2b990e50c8a5 100644
@@ -1642,7 +1642,10 @@ scmi_common_fastchannel_init(const struct scmi_protocol_handle *ph,
 	 * fastchannels at all.
 	 */
 	ret = ph->xops->do_xfer(ph, t);
-	if (ret)
+	if (ret == -EOPNOTSUPP) {
+		ph->xops->xfer_put(ph, t);
+		goto return_normal;
+	} else if (ret)
 		goto err_xfer;
 
 	resp = t->rx.buf;
@@ -1695,6 +1698,7 @@ scmi_common_fastchannel_init(const struct scmi_protocol_handle *ph,
 		"Using valid FC for protocol %X [MSG_ID:%u / RES_ID:%u]\n",
 		pi->proto->id, message_id, domain);
 
+return_normal:
 	return;
 
 err_db_mem:
Signature · 7 lines
2.42.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel