Hi again,
Sorry for my late response, been busy busy.
I disabled the patch and tested again. Then I get a random MAC address
<log time> <hostname> kernel: fec 2188000.ethernet: Invalid MAC address: 00:00:00:00:00:00
<log time> <hostname> kernel: fec 2188000.ethernet: Using random MAC address: 82:93:32:58:9a:cb
I get link up
<log time> <hostname> kernel: Marvell 88q5050 2188000.ethernet-1:07: attached PHY driver (mii_bus:phy_addr=2188000.ethernet-1:07, irq=POLL)
<log time> <hostname> kernel: fec 2188000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
I'm able to receive packets, but nothing goes out. And I get a periodic TX ring buffer dump.
fec 2188000.ethernet eth0: TX ring dump
Nr SC addr len SKB
<removed ring buffer elements>
My suspision is that this call in the patch fixes my TX issues
imx6q_enet_clk_sel();
and this call fixes the MAC address issue:
imx6_enet_mac_init("fsl,imx6q-fec", "fsl,imx6q-ocotp");
The imx6_enet_mac_init is called for other IMX6 SOC's but not imx6q
it/arch/arm/mach-imx$ git grep imx6_enet_mac_init
common.c:void __init imx6_enet_mac_init(const char *enet_compat, const char *ocotp_compat)
common.h:void imx6_enet_mac_init(const char *enet_compat, const char *ocotp_compat);
mach-imx6sl.c: imx6_enet_mac_init("fsl,imx6sl-fec", "fsl,imx6sl-ocotp");
mach-imx6sx.c: imx6_enet_mac_init("fsl,imx6sx-fec", "fsl,imx6sx-ocotp");
mach-imx6ul.c: imx6_enet_mac_init("fsl,imx6ul-fec", "fsl,imx6ul-ocotp");
mach-imx7d.c: imx6_enet_mac_init("fsl,imx7d-fec", "fsl,imx7d-ocotp");
No, I haven't tried the demo images.
Thanks