AnsweredAssumed Answered

imx6dp ethernet fec slow link up

Question asked by sijil cv on Mar 20, 2017
Latest reply on Mar 23, 2017 by jimmychan

I am working on an automotive system with imx6dp processor and Broadcom Ethernet switch (bcm89501). The expected Ethernet link up time is in the order of milliseconds but it takes around 2 seconds. There is no issue with data communication.

 

#ifconfig eth0 down
#ifconfig eth0 192.168.123.123 up
[11814.320168] fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=-1)
# [11816.320292] fec 2188000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off

 

 

The imx6 Ethernet fec device node is setup with fixed link mode and the BCM-89501 switch register is configured to work with fixed link mode by software override option.

 

i.mx6 device tree FEC node

 

fec: ethernet@02188000 {
compatible = "fsl,imx6q-fec";
reg = <0x02188000 0x4000>;
interrupts-extended =
<&gpc 0 118 IRQ_TYPE_LEVEL_HIGH>,
<&gpc 0 119 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6QDL_CLK_ENET>,
<&clks IMX6QDL_CLK_ENET>,
<&clks IMX6QDL_CLK_ENET_REF>;
clock-names = "ipg", "ahb", "ptp";
fixed-link = <1 1 1000 0 0>;
stop-mode = <&gpr 0x34 27>;
fsl,wakeup_irq = <0>;
status = "disabled";
};


The delay seems to be from the imx6 fec driver. Please help me to resolve this issue.

Outcomes