]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: unregister the netdev before disconnecting from the PHY
authorRobert-Ionut Alexa <robert-ionut.alexa@nxp.com>
Wed, 9 Feb 2022 15:57:43 +0000 (17:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Feb 2022 15:21:53 +0000 (15:21 +0000)
commit444bc87191dd6d7e0bf48b43eeacc2248ec17c44
treef895aef32cf6026ae93d6341153bcff0a946ba81
parent76ee2b0bb5c1ca0d12d8a8d3096d83bc29700525
dpaa2-eth: unregister the netdev before disconnecting from the PHY

The netdev should be unregistered before we are disconnecting from the
MAC/PHY so that the dev_close callback is called and the PHY and the
phylink workqueues are actually stopped before we are disconnecting and
destroying the phylink instance.

Fixes: b96dc6eb861b ("dpaa2-eth: add MAC/PHY support through phylink")
Signed-off-by: Robert-Ionut Alexa <robert-ionut.alexa@nxp.com>
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