Revert "net: dsa: bcm_sf2: Also configure Port 5 for 2Gb/sec on 7278"
PATCH 1/1 Revert "net: dsa: bcm_sf2: Also configure Port 5 for 2Gb/sec on 7278"
This reverts commit 7458bd540fa0a90220b9e8c349d910d9dde9caf8 ("net: dsa:bcm_sf2: Also configure Port 5 for 2Gb/sec on 7278") as it causes advanced congestion buffering issues with 7278 switch devices when using their internal Giabit PHY. While this is being debugged, continue with conservative defaults that work and do not cause packet loss.
--- drivers/net/dsa/bcm_sf2.c | 3 --- drivers/net/dsa/bcm_sf2_regs.h | 1 - 2 files changed, 4 deletions(-)
drivers/net/dsa/bcm_sf2.c +0 -3
@@ -616,9 +616,6 @@ static void bcm_sf2_sw_mac_config(struct dsa_switch *ds, int port,if (state->duplex ==DUPLEX_FULL ) reg |=DUPLX_MODE ; -if (priv->type ==BCM7278_DEVICE_ID &&dsa_is_cpu_port (ds, port)) - reg |=GMIIP_SPEED_UP_2G ; -core_writel (priv, reg, offset); }
drivers/net/dsa/bcm_sf2_regs.h +0 -1
@@ -178,7 +178,6 @@ enum bcm_sf2_reg_offs {#define RXFLOW_CNTL (1 << 4)#define TXFLOW_CNTL (1 << 5)#define SW_OVERRIDE (1 << 6) -#define GMIIP_SPEED_UP_2G (1 << 7)#define CORE_WATCHDOG_CTRL 0x001e4#define SOFTWARE_RESET (1 << 7)
Signature · 1 line
2.17.1
Quoted 8 lines · Florian Fainelli
This reverts commit
7458bd540fa0a90220b9e8c349d910d9dde9caf8("net: dsa:bcm_sf2: Also configure Port 5 for 2Gb/sec on 7278") as it causes advanced congestion buffering issues with 7278 switch devices when using their internal Giabit PHY. While this is being debugged, continue with conservative defaults that work and do not cause packet loss.Fixes 7458bd540fa0 ("net: dsa: bcm_sf2: Also configure Port 5 for 2Gb/sec on 7278")Signed-off-by Florian Fainelli <[email protected]>
From: Florian Fainelli <[email protected]>
Date: Mon, 24 Feb 2020 15:44:26 -0800
Quoted 8 lines
This reverts commit
7458bd540fa0a90220b9e8c349d910d9dde9caf8("net: dsa:bcm_sf2: Also configure Port 5 for 2Gb/sec on 7278") as it causes advanced congestion buffering issues with 7278 switch devices when using their internal Giabit PHY. While this is being debugged, continue with conservative defaults that work and do not cause packet loss.Fixes 7458bd540fa0 ("net: dsa: bcm_sf2: Also configure Port 5 for 2Gb/sec on 7278")Signed-off-by Florian Fainelli <[email protected]>
Applied.