Skip to content

Commit de34d70

Browse files
ffainellidavem330
authored andcommitted
net: dsa: bcm_sf2: Only 7278 supports 2Gb/sec IMP port
The 7445 switch clocking profiles do not allow us to run the IMP port at 2Gb/sec in a way that it is reliable and consistent. Make sure that the setting is only applied to the 7278 family. Fixes: 8f1880c ("net: dsa: bcm_sf2: Configure IMP port for 2Gb/sec") Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent df37370 commit de34d70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/net/dsa/bcm_sf2.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ static void bcm_sf2_imp_setup(struct dsa_switch *ds, int port)
6868

6969
/* Force link status for IMP port */
7070
reg = core_readl(priv, offset);
71-
reg |= (MII_SW_OR | LINK_STS | GMII_SPEED_UP_2G);
71+
reg |= (MII_SW_OR | LINK_STS);
72+
if (priv->type == BCM7278_DEVICE_ID)
73+
reg |= GMII_SPEED_UP_2G;
7274
core_writel(priv, reg, offset);
7375

7476
/* Enable Broadcast, Multicast, Unicast forwarding to IMP port */

0 commit comments

Comments
 (0)