• Nimrod Andy's avatar
    net: fec: init MAC prior to mii bus probe · 55dd2753
    Nimrod Andy authored
    Below case causes mii bus probe failed:
    ifconfig eth0 down -> suspend/resume with Mega/fax mix off -> ifconfig eth0 up
    
    In i.MX6SX/i.MX7D chip, Mega/fast mix off feature is supported that means most of
    SOC power will be off including ENET MAC for power saving. Once ENET MAC power
    off, all initialized MAC registers reset to default, so in the case, it must
    init MAC prior to mii bus probe.
    Signed-off-by: default avatarFugang Duan <B38611@freescale.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    55dd2753
fec_main.c 91.3 KB