linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] soc: imx: check ls1021a
@ 2020-07-09  8:25 peng.fan
  2020-07-10 10:32 ` Horia Geantă
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: peng.fan @ 2020-07-09  8:25 UTC (permalink / raw)
  To: shawnguo, s.hauer, aisheng.dong
  Cc: Peng Fan, horia.geanta, linux-imx, kernel, leonard.crestez,
	linux-arm-kernel

From: Peng Fan <peng.fan@nxp.com>

fsl,ls1021a is a mach under arch/arm/mach-imx/, however it could
not use the soc driver which will break caam on ls1021a platform.

So directly return if it is compatible with fsl,ls1021a.

Fixes: 52102a3ba6a61 ("soc: imx: move cpu code to drivers/soc/imx")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 drivers/soc/imx/soc-imx.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/soc/imx/soc-imx.c b/drivers/soc/imx/soc-imx.c
index fec3d672b606..01bfea1cb64a 100644
--- a/drivers/soc/imx/soc-imx.c
+++ b/drivers/soc/imx/soc-imx.c
@@ -33,6 +33,9 @@ static int __init imx_soc_device_init(void)
 	u32 val;
 	int ret;
 
+	if (of_machine_is_compatible("fsl,ls1021a"))
+		return 0;
+
 	soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
 	if (!soc_dev_attr)
 		return -ENOMEM;
-- 
2.16.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-07-20 12:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-09  8:25 [PATCH] soc: imx: check ls1021a peng.fan
2020-07-10 10:32 ` Horia Geantă
2020-07-10 14:05 ` Fabio Estevam
2020-07-13  8:28 ` Shawn Guo
2020-07-17 16:19 ` Arnd Bergmann
2020-07-20  6:30   ` Peng Fan
2020-07-20  7:01     ` Arnd Bergmann
2020-07-20  7:05       ` Peng Fan
2020-07-20  7:19         ` Arnd Bergmann
2020-07-20  9:01       ` Peng Fan
2020-07-20 12:33         ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).