Hi,
We are using dual KSZ8041RNLI ethernet ic on AM4372.
It detects the link for eth0 and eth1 separately, but can't get IP address if only one of them is plugged.
If both of the eth0 and eth1 links are plugged; it get IP and network is OK.
I have added dts configurations and boot log and ethtool result when link is detected below.
Could you please check them to find the reason of issue ?
Thanks,
Halil
&mac {
[ 1.150228] libphy: Fixed MDIO Bus: probed
[ 1.229158] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[ 1.236861] davinci_mdio 4a101000.mdio: detected phy mask ffffffdc
[ 1.245987] libphy: 4a101000.mdio: probed
[ 1.250134] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Micrel KSZ8041RNLI
[ 1.259209] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver Micrel KSZ8041RNLI
[ 1.268214] davinci_mdio 4a101000.mdio: phy[5]: device 4a101000.mdio:05, driver Micrel KSZ8041RNLI
[ 1.278329] cpsw 4a100000.ethernet: Detected MACID = 50:65:83:e0:bb:a4
[ 1.285089] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[ 1.291534] cpsw 4a100000.ethernet: ALE Table size 1024
[ 1.296821] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
[ 1.304844] cpsw 4a100000.ethernet: cpsw: Detected MACID = 50:65:83:e0:bb:a6
(It is connected physically to PHY ids 1 and 5, not to 0)
root@am437x-evm:~# ethtool eth1
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 5
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000000 (0)
Link detected: yes
[ 426.329933] cpsw 4a100000.ethernet eth1: Link is Down
[ 429.610117] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 429.618292] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
root@am437x-evm:~# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000000 (0)
Link detected: yes