Skip to contentSkip to conversation

armv8: fsl: Use correct conditional compile for ls1012a

PATCH New Ran Wang 2 participants 2 messages Aug 28, 2017 – Sep 13, 2017 Arm (32-bit)

lore
Share & tools
lore

Ran Wang

author
#0 lore raw

PATCH 1/1 armv8: fsl: Use correct conditional compile for ls1012a

According current code base, CONFIG_LS1012A should be CONFIG_ARCH_LS1012A, or function fsl_fdt_disable(blob) will be wrongly called to disable all dwc3 USB nodes on LS1012A, which cause Linux USB function stop working at all.

---
 arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/cpu/armv8/fsl-layerscape/fdt.c +1 -1
index f5f4840f19..09b2cb1002 100644
@@ -387,7 +387,7 @@ void ft_cpu_setup(void *blob, bd_t *bd)
 #ifdef CONFIG_SYS_DPAA_FMAN
 	fdt_fixup_fman_firmware(blob);
 #endif
-#ifndef CONFIG_LS1012A
+#ifndef CONFIG_ARCH_LS1012A
 	fsl_fdt_disable_usb(blob);
 #endif
 #ifdef CONFIG_HAS_FEATURE_GIC64K_ALIGN
Signature · 1 line
2.14.1
Applied
#1 lore raw

PATCH 1/1 armv8: fsl: Use correct conditional compile for ls1012a

Quoted 7 lines · Ran Wang

According current code base, CONFIG_LS1012A should be CONFIG_ARCH_LS1012A, or function fsl_fdt_disable(blob) will be wrongly called to disable all dwc3 USB nodes on LS1012A, which cause Linux USB function stop working at all.

---

Applied to fsl-qoriq master. Thanks.

York