Files
android_kernel_xiaomi_sm8450/drivers/net/dsa
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
..
2017-04-01 12:39:32 -07:00
2017-04-01 12:39:32 -07:00
2017-10-18 12:24:33 +01:00
2017-10-18 12:24:33 +01:00
2017-10-18 12:24:33 +01:00