dpaa2-eth: no need to check link state right after ndo_open
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 25 Sep 2020 14:44:20 +0000 (17:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Sep 2020 00:10:27 +0000 (17:10 -0700)
commit4c33a5bd063f9fdbced5fd1ceb7814e5f64f6a7b
treed80d96b50bfa1afbdf80c8bdab9813cd40fc7d85
parent98179709c95ecd60274668a20365a0cd0b3726eb
dpaa2-eth: no need to check link state right after ndo_open

The call to dpaa2_eth_link_state_update() is a leftover from the time
when on DPAA2 platforms the PHYs were started at boot time so when an
ifconfig was issued on the associated interface, the link status needed
to be checked directly from the ndo_open() callback.
This is not needed anymore since we are now properly integrated with the
PHY layer thus a link interrupt will come directly from the PHY
eventually without the need to call the sync function.
Fix this up by removing the call to dpaa2_eth_link_state_update().

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c