MLK-17597-1: i.MX8MQ workaround affecting other SoCs
authorNitin Garg <nitin.garg@nxp.com>
Thu, 15 Feb 2018 21:30:51 +0000 (15:30 -0600)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:55:16 +0000 (14:55 -0500)
Fix iMX8MQ workaround to be specific to that
machine.

Signed-off-by: Nitin Garg <nitin.garg@nxp.com>
drivers/irqchip/irq-gic-v3.c

index 8889d69..1285864 100644 (file)
@@ -1188,8 +1188,11 @@ static int __init gic_of_init(struct device_node *node, struct device_node *pare
                rdist_regs[i].phys_base = res.start;
        }
 
-       /* sw workaround for IPI can't wakeup CORE ERRATA(ERR011171) on i.MX8MQ */
-       iomuxc_gpr_base = of_iomap(node, 2);
+       if (of_machine_is_compatible("fsl,imx8mq")) {
+               /* sw workaround for IPI can't wakeup CORE
+                  ERRATA(ERR011171) on i.MX8MQ */
+               iomuxc_gpr_base = of_iomap(node, 2);
+       }
 
        if (of_property_read_u64(node, "redistributor-stride", &redist_stride))
                redist_stride = 0;