dpaa2-mac: fixup the remove path
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 9 Feb 2021 14:53:26 +0000 (16:53 +0200)
committerIoana Ciornei <ioana.ciornei@nxp.com>
Wed, 3 Mar 2021 10:05:04 +0000 (12:05 +0200)
commit01a5e4c5d22459a294d318857271894621412c93
treeb8cc16e879c7c05cefaa8a0e448567f7700179a9
parent56a447768614b931caa0ae8aa8bcaa670bdd89b4
dpaa2-mac: fixup the remove path

On the remove path, there is a need to teardown the IRQs and disconnect
from the PHY only if the DPMAC is not in TYPE_FIXED.
Update the remove path so that we do not end up accesing an invalid MC
portal.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h