I have found that some issues in the imx6ul platform,please see below:
1. ifconfig eth0 192.168.1.164 up <ok>
ifconfig eth1 192.168.1.149 up <ok>
2. Plug into eth0,ping 192.168.1.1 <ok>
3. Plug into eth1,ping 192.168.1.1 <ok>
4. Plug into eth1,if I exec the cmd “ifconfig eth0 down”,it will prompt “fec 2188000.ethnet eth1: Link is Down”,and
ping 192.168.1.1 is failed
The following is my dts config:
&fec1 {
pinctrl-name = “default”;
pinctrl-0 = <&pinctrl_enet1>;
phy-mode = "rmii";
phy-handle = <ðphy0>;
status = "okay";
}
&fec2 {
pinctrl-name = “default”;
pinctrl-0 = <&pinctrl_enet2>;
phy-mode = "rmii";
phy-handle = <ðphy1>;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
}
ethphy1: ethernet-phy@5 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <5>;
}
}
}
Hope for your support, thanks.