alistair23-linux/drivers/net/dsa/b53
Vivien Didelot bff7b688d5 net: dsa: add dsa_is_unused_port helper
As the comment above the chunk states, the b53 driver attempts to
disable the unused ports. But using ds->enabled_port_mask is misleading,
because this mask reports in fact the user ports.

To avoid confusion and fix this, this patch introduces an explicit
dsa_is_unused_port helper which ensures the corresponding bit is not
masked in any of the switch port masks.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-10-28 00:00:09 +09:00
..
b53_common.c net: dsa: add dsa_is_unused_port helper 2017-10-28 00:00:09 +09:00
b53_mdio.c net: dsa: b53: Utilize mdio_module_driver 2017-01-24 13:37:51 -05:00
b53_mmap.c net: dsa: b53: Fix module autoload 2016-10-17 13:03:03 -04:00
b53_priv.h net: dsa: bcm_sf2: Utilize b53_{enable, disable}_port 2017-09-19 16:08:54 -07:00
b53_regs.h net: dsa: b53: Define EEE register page 2017-09-19 16:08:53 -07:00
b53_spi.c net: dsa: b53: remove .owner and .bus fields for driver 2016-08-14 21:24:25 -07:00
b53_srab.c net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360. 2017-05-18 11:01:42 -04:00
Kconfig
Makefile