1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/dsa/b53
Rafał Miłecki 63f8428b40 net: dsa: b53: Fix IMP port setup on BCM5301x
Broadcom's b53 switches have one IMP (Inband Management Port) that needs
to be programmed using its own designed register. IMP port may be
different than CPU port - especially on devices with multiple CPU ports.

For that reason it's required to explicitly note IMP port index and
check for it when choosing a register to use.

This commit fixes BCM5301x support. Those switches use CPU port 5 while
their IMP port is 8. Before this patch b53 was trying to program port 5
with B53_PORT_OVERRIDE_CTRL instead of B53_GMII_PORT_OVERRIDE_CTRL(5).

It may be possible to also replace "cpu_port" usages with
dsa_is_cpu_port() but that is out of the scope of thix BCM5301x fix.

Fixes: 967dd82ffc ("net: dsa: b53: Add support for Broadcom RoboSwitch")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-09-05 19:02:38 +01:00
..
b53_common.c net: dsa: b53: Fix IMP port setup on BCM5301x 2021-09-05 19:02:38 +01:00
b53_mdio.c net: dsa: b53: Add BCM5389 support 2018-06-01 11:15:42 -04:00
b53_mmap.c net: dsa: b53: mmap: Add device tree support 2021-03-18 14:37:44 -07:00
b53_priv.h net: dsa: b53: Fix IMP port setup on BCM5301x 2021-09-05 19:02:38 +01:00
b53_regs.h net: dsa: b53: Support setting learning on port 2021-02-23 12:23:00 -08:00
b53_serdes.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
b53_serdes.h net: dsa: b53: Use the correct style for SPDX License Identifier 2019-09-22 15:24:51 -07:00
b53_spi.c net: dsa: b53: spi: add missing MODULE_DEVICE_TABLE 2021-03-25 17:11:22 -07:00
b53_srab.c net: dsa: b53: remove redundant null check on dev 2021-06-15 11:28:01 -07:00
Kconfig net: dsa: b53: support legacy tags 2021-03-17 12:24:36 -07:00
Makefile net: dsa: b53: Add SerDes support 2018-09-06 07:48:34 -07:00