大家好:
现象:设备树只开启一个网口节点是单独使用正常的,但是同时开启两个的话,phy id可以读到,但是两个网口都不能用.这两个phy是同一路MDIO总线,phy地址一个0一个1,MDIO 总线添加到 ENET2了,
日志打印:
fec 20b4000.ethernet eth0: Freescale FEC PHY driver [JL1xxx Fast Ethernet] (mii_bus:phy_addr=20b4000.ethernet:03, irq=-1)
fec 2188000.ethernet eth1: Freescale FEC PHY driver [JL1xxx Fast Ethernet] (mii_bus:phy_addr=20b4000.ethernet:00, irq=-1)
printk:
phy_id = 937c4024 addr = 0
phy_id = 937c4024 addr = 1
很奇怪的是网口1插网线 的日志是网口0的:
fec 20b4000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
网口0 插网线没打印日志.
fec 20b4000.ethernet eth0: Freescale FEC PHY driver [JL1xxx Fast Ethernet] (mii_bus:phy_addr=20b4000.ethernet:01, irq=-1)
fec 2188000.ethernet eth1: Freescale FEC PHY driver [JL1xxx Fast Ethernet] (mii_bus:phy_addr=20b4000.ethernet:00, irq=-1)
是这个,我尝试改过phy地址,也是一样的情况
Hi,
Thank you for your interest in NXP Semiconductor products,
The guideline to troubleshoot this would be:
Regards