[PATCH v3 2/2] firmware: zynqmp: return status in EL2 from xilinx_pm_request.

Adrian Fiergolski adrian.fiergolski at fastree3d.com
Thu Oct 14 13:53:29 CEST 2021


This patch fixes xilinx_pm_request to return a valid status from
xilinx_pm_request in EL2.

Signed-off-by: Adrian Fiergolski <adrian.fiergolski at fastree3d.com>
---
 drivers/firmware/firmware-zynqmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/firmware-zynqmp.c b/drivers/firmware/firmware-zynqmp.c
index a69294dfc5..48099599be 100644
--- a/drivers/firmware/firmware-zynqmp.c
+++ b/drivers/firmware/firmware-zynqmp.c
@@ -208,7 +208,7 @@ int __maybe_unused xilinx_pm_request(u32 api_id, u32 arg0, u32 arg1, u32 arg2,
 			ret_payload[4] = (u32)regs.regs[2];
 		}
 
-		ret = (ret_payload) ? ret_payload[0] : 0;
+		ret = (u32)regs.regs[0];
 	}
 	return ret;
 }
-- 
2.33.0



More information about the U-Boot mailing list