Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Fixes: 7458bd540fa0 ("net: dsa: bcm_sf2: Also configure Port 5 for 2Gb/sec on 7278")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Florian Fainelli and committed by
David S. Miller
3f02735e bb0858d8

-4
-3
drivers/net/dsa/bcm_sf2.c
··· 616 616 if (state->duplex == DUPLEX_FULL) 617 617 reg |= DUPLX_MODE; 618 618 619 - if (priv->type == BCM7278_DEVICE_ID && dsa_is_cpu_port(ds, port)) 620 - reg |= GMIIP_SPEED_UP_2G; 621 - 622 619 core_writel(priv, reg, offset); 623 620 } 624 621
-1
drivers/net/dsa/bcm_sf2_regs.h
··· 178 178 #define RXFLOW_CNTL (1 << 4) 179 179 #define TXFLOW_CNTL (1 << 5) 180 180 #define SW_OVERRIDE (1 << 6) 181 - #define GMIIP_SPEED_UP_2G (1 << 7) 182 181 183 182 #define CORE_WATCHDOG_CTRL 0x001e4 184 183 #define SOFTWARE_RESET (1 << 7)