linux/drivers/net/dsa/b53
Florian Fainelli fea8335317 net: dsa: b53: Fix default VLAN ID
We were not consistent in how the default VID of a given port was
defined, b53_br_leave() would make sure the VLAN ID would be either 0/1
depending on the switch generation, but b53_configure_vlan(), which is
the default configuration would unconditionally set it to 1. The correct
value is 1 for 5325/5365 series and 0 otherwise. To avoid repeating that
mistake ever again, introduce a helper function: b53_default_pvid() to
factor that out.

Fixes: 967dd82ffc ("net: dsa: b53: Add support for Broadcom RoboSwitch")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-02-15 20:37:54 -08:00
..
b53_common.c net: dsa: b53: Fix default VLAN ID 2019-02-15 20:37:54 -08:00
b53_mdio.c
b53_mmap.c
b53_priv.h net: dsa: b53: Add SerDes support 2018-09-06 07:48:34 -07:00
b53_regs.h
b53_serdes.c net: dsa: b53: Don't assign autonegotiation enabled 2018-09-21 19:57:03 -07:00
b53_serdes.h net: dsa: b53: Fix B53_SERDES_DIGITAL_CONTROL offset 2018-09-21 20:01:19 -07:00
b53_spi.c
b53_srab.c net: dsa: b53: Fix for failure when irq is not defined in dt 2019-02-07 18:18:37 -08:00
Kconfig net: dsa: b53: Fix build with B53_SRAB enabled and B53_SERDES=m 2018-09-28 10:33:42 -07:00
Makefile net: dsa: b53: Add SerDes support 2018-09-06 07:48:34 -07:00