Skip to contentSkip to conversation

imx: kontron-sl-mx6ul: Enable CONFIG_DM_MDIO to fix boot abort

PATCH In review Frieder Schrempf 2 participants 2 messages May 26 – Jun 5

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx: kontron-sl-mx6ul: Enable CONFIG_DM_MDIO to fix boot abort

From: Frieder Schrempf <[email protected]>

The following failure occurs right before switching to the kernel:

data abort

pc : [<9ff60162>]	   lr : [<9ff79d13>]

reloc pc : [<8781c162>] lr : [<87835d13>]
sp : 9bf30f78 ip : 9bf4b140 fp : 007963a0
r10: fffffdfb r9 : 9bf3bed0 r8 : 00004600
r7 : 00000000 r6 : 9ffe5a0c r5 : 00004600 r4 : 9bf4acf0
r3 : f5f5f5f5 r2 : f5f5f5f5 r1 : 9ffe0c5c r0 : 9bf7c130
Flags: NzCv IRQs off FIQs off Mode SVC_32 (T)

Code: 9ffe b158 e9d0 2300 (6053) 601a

Resetting CPU ...

This is due to the fact that the board uses a shared MDIO bus for both ethernet controllers, but FEC_MXC_SHARE_MDIO is not enabled.

This results in a double free in fecmxc_remove(). To fix this enable CONFIG_DM_MDIO so the shared MDIO is correctly detected from the devicetree.

Fixes 048fdda977ab ("imx: kontron-sl-mx6ul: Enable second ethernet interface")
---
 configs/kontron-sl-mx6ul_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/kontron-sl-mx6ul_defconfig +1 -0
index c6d450419cc..4203c3e8a4b 100644
@@ -96,6 +96,7 @@ CONFIG_SPI_FLASH_MTD=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ8XXX=y
+CONFIG_DM_MDIO=y
 CONFIG_DM_ETH_PHY=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
Signature · 1 line
2.54.0
#1 lore raw
Quoted 19 lines · Frieder Schrempf

From: Frieder Schrempf <[email protected]>

The following failure occurs right before switching to the kernel:

data abort

pc : [<9ff60162>]          lr : [<9ff79d13>]

reloc pc : [<8781c162>] lr : [<87835d13>]
sp : 9bf30f78 ip : 9bf4b140 fp : 007963a0
r10: fffffdfb r9 : 9bf3bed0 r8 : 00004600
r7 : 00000000 r6 : 9ffe5a0c r5 : 00004600 r4 : 9bf4acf0
r3 : f5f5f5f5 r2 : f5f5f5f5 r1 : 9ffe0c5c r0 : 9bf7c130
Flags: NzCv IRQs off FIQs off Mode SVC_32 (T)

Code: 9ffe b158 e9d0 2300 (6053) 601a

Resetting CPU ...

This is due to the fact that the board uses a shared MDIO bus for both ethernet controllers, but FEC_MXC_SHARE_MDIO is not enabled.

Quoted 6 lines

This results in a double free in fecmxc_remove(). To fix this enable CONFIG_DM_MDIO so the shared MDIO is correctly detected from the devicetree.

Fixes 048fdda977ab ("imx: kontron-sl-mx6ul: Enable second ethernet interface")

Applied to u-boot-imx/master, thanks.