[PATCH] soc: xilinx: Add error message for invalid payload received from IPI callback.

Michal Simek michal.simek at amd.com
Thu Dec 7 07:24:08 PST 2023


From: Naman Trivedi Manojbhai <naman.trivedimanojbhai at amd.com>

payload[0] of response buffer of zynqmp_pm_get_callback_data()
contains valid payload or error code in case of error.

Added error message to inform user about the error code received in
payload[0].

Signed-off-by: Naman Trivedi Manojbhai <naman.trivedimanojbhai at amd.com>
Signed-off-by: Michal Simek <michal.simek at amd.com>
---

 drivers/soc/xilinx/zynqmp_power.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/soc/xilinx/zynqmp_power.c b/drivers/soc/xilinx/zynqmp_power.c
index abcf7e883279..07d735b38b49 100644
--- a/drivers/soc/xilinx/zynqmp_power.c
+++ b/drivers/soc/xilinx/zynqmp_power.c
@@ -86,6 +86,8 @@ static irqreturn_t zynqmp_pm_isr(int irq, void *data)
 			pr_err("%s Unsupported InitSuspendCb reason code %d\n",
 			       __func__, payload[1]);
 		}
+	} else {
+		pr_err("%s() Unsupported Callback %d\n", __func__, payload[0]);
 	}
 
 	return IRQ_HANDLED;
-- 
2.36.1




More information about the linux-arm-kernel mailing list