soc: xilinx: zynqmp: Remove redundant checks for zynqmp_mmio_read
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Mon, 20 Jun 2022 16:36:42 +0000 (18:36 +0200)
committerMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:37:27 +0000 (14:37 +0200)
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>
Link: https://lore.kernel.org/r/20220620163650.18756-7-stefan.herbrechtsmeier-oss@weidmueller.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/soc/soc_xilinx_zynqmp.c

index a71115b..563d93d 100644 (file)
@@ -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,