linux/drivers/net/dsa/microchip
Vivien Didelot 74be4babe7 net: dsa: do not enable or disable non user ports
The .port_enable and .port_disable operations are currently only
called for user ports, hence assuming they have a slave device. In
preparation for using these operations for other port types as well,
simply guard all implementations against non user ports and return
directly in such case.

Note that bcm_sf2_sw_suspend() currently calls bcm_sf2_port_disable()
(and thus b53_disable_port()) against the user and CPU ports, so do
not guards those functions. They will be called for unused ports in
the future, but that was expected by those drivers anyway.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-08-20 12:33:49 -07:00
..
Kconfig net: dsa: ksz: Drop NET_DSA_TAG_KSZ9477 2019-08-06 11:59:17 -07:00
ksz8795_reg.h net: dsa: ksz: Add Microchip KSZ8795 DSA driver 2019-07-30 15:12:50 -07:00
ksz8795_spi.c net: dsa: ksz: Merge ksz_priv.h into ksz_common.h 2019-08-06 11:59:17 -07:00
ksz8795.c net: dsa: ksz: Merge ksz_priv.h into ksz_common.h 2019-08-06 11:59:17 -07:00
ksz9477_reg.h net: dsa: microchip: rename ksz_9477_reg.h to ksz9477_reg.h 2018-11-20 20:57:12 -08:00
ksz9477_spi.c net: dsa: ksz: Merge ksz_priv.h into ksz_common.h 2019-08-06 11:59:17 -07:00
ksz9477.c net: dsa: ksz: Merge ksz_priv.h into ksz_common.h 2019-08-06 11:59:17 -07:00
ksz_common.c net: dsa: do not enable or disable non user ports 2019-08-20 12:33:49 -07:00
ksz_common.h net: dsa: ksz: Merge ksz_priv.h into ksz_common.h 2019-08-06 11:59:17 -07:00
Makefile net: dsa: ksz: Add Microchip KSZ8795 DSA driver 2019-07-30 15:12:50 -07:00