]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: start phylink instance before stmmac_hw_setup()
authorFugang Duan <fugang.duan@nxp.com>
Mon, 7 Dec 2020 10:51:38 +0000 (18:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Dec 2020 22:52:29 +0000 (14:52 -0800)
commit87a1ece867807c3c9cf5b775d9b4acb38097c5f0
treee2d3817604c9ca6648c28b6730fc045696b367aa
parentfe59576e64e313cdba0915c6c78ba0afdb954836
net: stmmac: start phylink instance before stmmac_hw_setup()

Start phylink instance and resume back the PHY to supply
RX clock to MAC before MAC layer initialization by calling
.stmmac_hw_setup(), since DMA reset depends on the RX clock,
otherwise DMA reset cost maximum timeout value then finally
timeout.

Fixes: dcaf3bd13d17 ("net: stmmac: Convert to phylink and remove phylib logic")
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c