Hi, All
My board is configured with 2 mac ports with RMII, LAN8720A as phy chip. The kernel is configured with CONFIG_VLAN_8021Q & CONFIG_VLAN_8021Q_GVRP. When startup with ethernet cable connected, both ports are link up as following message:
net number:2
IPAddr:192.168.201.174
SubnetMask:255.255.255.0
DefaultGateway:192.168.201.19
[ 5.930284] net eth0: initializing cpsw version 1.12 (0)
[ 5.938881] net eth0: phy found : id is : 0x7c0f1
[ 5.948184] 8021q: adding VLAN 0 to HW filter on device eth0
IPAddr:192.168.202.174
SubnetMask:255.255.255.0
DefaultGateway:
[ 5.985984] net eth1: initializing cpsw version 1.12 (0)
[ 5.994583] net eth1: phy found : id is : 0x7c0f1
[ 6.002953] 8021q: adding VLAN 0 to HW filter on device eth1
[ 9.018770] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
[ 9.068980] libphy: 4a101000.mdio:01 - Link is Up - 100/Full
Two ports can been pinged from outside. With eth0 keeping connected, eth1 can be disconnected/connected without problem. When eth0 is disconnected, eth1 is down as well with following message:
[ 69.098353] libphy: 4a101000.mdio:00 - Link is Down
[ 72.068081] libphy: 4a101000.mdio:01 - Link is Down
Connecting eth0 again, eth0 is resumed to work, but eth1 not. Using ifconfig can resume eth1 as follows:
[root@EM9280 /]#ifconfig eth1 down
[root@EM9280 /]#ifconfig eth1 up
[ 128.897230] net eth1: initializing cpsw version 1.12 (0)
[ 128.903477] net eth1: phy found : id is : 0x7c0f1
[ 128.911911] 8021q: adding VLAN 0 to HW filter on device eth1
[root@EM9280 /]#[ 130.898742] libphy: 4a101000.mdio:01 - Link is Up - 100/Full
My questions is if it's possible to keep eth1 working even eth0 is disconnected, or both eth0 and eth1 can be resumed automatically when eth0 connected again. As cpsw driver is quite complicated, I havn't found any point to fix this issue. It's appreciated for any help, thanks
BR
Cheng Shi