diff mbox series

[v2,07/15] soc: xilinx: zynqmp: Remove redundant checks for zynqmp_mmio_read

Message ID 20220620163650.18756-7-stefan.herbrechtsmeier-oss@weidmueller.com
State Accepted
Commit 18fcb49db51eaae58dc68f527c4880958ec5e3ca
Delegated to: Michal Simek
Headers show
Series [v2,01/15] firmware: zynqmp: Check if rx channel dev pointer is valid | expand

Commit Message

Stefan Herbrechtsmeier June 20, 2022, 4:36 p.m. UTC
From: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>

Remove the redundant SPL and CurrentEL checks for the zynqmp_mmio_read
function call because the function itself runs the same checks.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>

---

Changes in v2:
- New commit

 drivers/soc/soc_xilinx_zynqmp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/soc/soc_xilinx_zynqmp.c b/drivers/soc/soc_xilinx_zynqmp.c
index a71115b17c..563d93da24 100644
--- a/drivers/soc/soc_xilinx_zynqmp.c
+++ b/drivers/soc/soc_xilinx_zynqmp.c
@@ -54,8 +54,7 @@  static int soc_xilinx_zynqmp_probe(struct udevice *dev)
 
 	priv->family = zynqmp_family;
 
-	if (IS_ENABLED(CONFIG_SPL_BUILD) || current_el() == 3 ||
-	    !IS_ENABLED(CONFIG_ZYNQMP_FIRMWARE))
+	if (!IS_ENABLED(CONFIG_ZYNQMP_FIRMWARE))
 		ret = zynqmp_mmio_read(ZYNQMP_PS_VERSION, &ret_payload[2]);
 	else
 		ret = xilinx_pm_request(PM_GET_CHIPID, 0, 0, 0, 0,