linux/drivers/net/dsa/ocelot
Vladimir Oltean e5fb512d81 net: mscc: ocelot: deinitialize only initialized ports
Currently mscc_ocelot_init_ports() will skip initializing a port when it
doesn't have a phy-handle, so the ocelot->ports[port] pointer will be
NULL. Take this into consideration when tearing down the driver, and add
a new function ocelot_deinit_port() to the switch library, mirror of
ocelot_init_port(), which needs to be called by the driver for all ports
it has initialized.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-18 13:52:34 -07:00
..
felix.c net: mscc: ocelot: deinitialize only initialized ports 2020-09-18 13:52:34 -07:00
felix.h net: dsa: felix: introduce support for Seville VSC9953 switch 2020-07-13 17:40:02 -07:00
felix_vsc9959.c net: dsa: felix: (re)use already existing constants 2020-07-19 18:05:49 -07:00
Kconfig net: mscc: ocelot: remove duplicate "the the" phrase in Kconfig text 2020-08-18 16:02:03 -07:00
Makefile net: dsa: felix: introduce support for Seville VSC9953 switch 2020-07-13 17:40:02 -07:00
seville_vsc9953.c net: dsa: seville: fix buffer size of the queue system 2020-09-18 13:52:33 -07:00