mii_bus fails to register on imx51
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Linux |
Invalid
|
Low
|
Shawn Guo |
Bug Description
The mii_bus fails to register on imx51 and gives the following trace info. Clean of CONFIG_FIXED_PHY can remove the error.
Fixed MDIO Bus: probed
FEC Ethernet Driver
------------[ cut here ]------------
WARNING: at /build/
x6c/0x8c()
sysfs: cannot create duplicate filename '/class/mdio_bus/0'
Modules linked in:
Backtrace:
[<c0034540>] (dump_backtrace
r6:c03c0cef r5:000001c3 r4:df837d18 r3:f357b213
[<c0308c50>] (dump_stack+
0x6c)
[<c0043d30>] (warn_slowpath_
t+0x38/0x40)
r8:00000001 r7:df837d68 r6:df3dd090 r5:df811000 r4:ffffffef
r3:00000009
[<c0043e08>] (warn_slowpath_
0x8c)
r3:df811000 r2:c03c0d20
[<c00ef0e4>] (sysfs_
fc/0x1cc)
r7:df85aa20 r6:df3dd000 r5:df3d1648 r4:df3dd090
[<c00effd4>] (sysfs_
nk+0x14/0x18)
[<c00f01b8>] (sysfs_
mlinks+0x5c/0xd8)
[<c0206b10>] (device_
0x110/0x2dc)
r6:c041bda8 r5:00000000 r4:df3d1640 r3:00000000
[<c02071b0>] (device_
)
r7:df3d1604 r6:df3d1640 r5:df3fc340 r4:df3d1640
[<c020748c>] (device_
/0x178)
r4:df3d1600 r3:00000000
[<c0238c70>] (mdiobus_
x120/0x164)
r8:c041bda0 r7:00000080 r6:df3d1600 r5:df3fc340 r4:df3fc000
r3:df3d3ba0
[<c023c3fc>] (fec_enet_
1f4)
r8:c041bda8 r7:df3fc340 r6:00000001 r5:c041bda0 r4:df3fc000
r3:ffc000f8
[<c0308324>] (fec_probe+
20)
[<c020a824>] (platform_
0x150)
[<c02096b4>] (really_
0/0x68)
r7:00000000 r6:c043e5f4 r5:c043e5f4 r4:c041bda8
[<c0209804>] (driver_
x68/0x8c)
r5:c041bddc r4:c041bda8
[<c020986c>] (__driver_
/0x84)
r6:00000000 r5:c020986c r4:c043e5f4 r3:00000000
[<c0208ea4>] (bus_for_
x28)
r6:c04369f8 r5:df3d3ae0 r4:c043e5f4
[<c02095a8>] (driver_
9c)
[<c0208770>] (bus_add_
0xe4)
r7:00000013 r6:00000000 r5:c00086ec r4:c043e5f4
[<c0209bec>] (driver_
ter+0x4c/0x60)
r5:c00086ec r4:c001fa4c
[<c020acf8>] (platform_
ule_init+0x1c/0x28)
[<c001fa4c>] (fec_enet_
0x60/0x1c4)
[<c002b2e0>] (do_one_
38)
r9:00000000 r8:00000000 r7:00000013 r6:c0047324 r5:c00086ec
r4:c0026840
[<c0008688>] (do_initcalls+
)
r4:00000000 r3:00000000
[<c00086c0>] (do_basic_
[<c00086ec>] (kernel_
r4:00000000 r3:00000000
---[ end trace 1c431abc57d885c7 ]---
mii_bus 0 failed to register
I'm not sure when and how the issue was fixed, but it's gone on linux-linaro- 2.6.38. Either CONFIG_FIXED_PHY is selected or not, we do not have this issue, and fec driver works on mx51 babbage board.