linux/drivers/net/ethernet/freescale
Vladimir Oltean 860fe1f87e net: dpaa2-switch: call dpaa2_switch_port_disconnect_mac on probe error path
Currently when probing returns an error, the netdev is freed but
phylink_disconnect is not called.

Create a common function between the unbind path and the error path,
call it the opposite of dpaa2_switch_probe_port: dpaa2_switch_remove_port,
and call it from both the unbind and the error path.

Fixes: 84cba72956 ("dpaa2-switch: integrate the MAC endpoint support")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-08-20 14:34:49 +01:00
..
dpaa net: dpaa_eth: remove dead select in menuconfig FSL_DPAA_ETH 2021-08-13 16:30:35 -07:00
dpaa2 net: dpaa2-switch: call dpaa2_switch_port_disconnect_mac on probe error path 2021-08-20 14:34:49 +01:00
enetc dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
fman fsl/fman: Add fibre support 2021-07-20 07:16:45 -07:00
fs_enet dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
fec_main.c net: fec: add WoL support for i.MX8MQ 2021-08-13 16:10:31 -07:00
fec_mpc52xx_phy.c
fec_mpc52xx.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
fec_mpc52xx.h
fec_ptp.c net: fec_ptp: fix issue caused by refactor the fec_devtype 2021-06-16 12:39:03 -07:00
fec.h net: fec: add WoL support for i.MX8MQ 2021-08-13 16:10:31 -07:00
fsl_pq_mdio.c net: freescale: convert comma to semicolon 2020-12-09 16:23:08 -08:00
gianfar_ethtool.c net: gianfar: reject unsupported coalescing params 2020-03-12 11:32:35 -07:00
gianfar.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
gianfar.h net: gianfar: Implement rx_missed_errors counter 2021-06-17 11:39:48 -07:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile net: enetc: fix link error again 2021-04-22 13:23:07 -07:00
ucc_geth_ethtool.c
ucc_geth.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
ucc_geth.h ethernet: ucc_geth: simplify rx/tx allocations 2021-01-21 12:19:56 -08:00
xgmac_mdio.c net: mdiobus: withdraw fwnode_mdbiobus_register 2021-06-25 11:46:29 -07:00