net: dsa: mv88e6xxx: Fix typ0 when configuring 2.5Gbps
authorAndrew Lunn <andrew@lunn.ch>
Wed, 1 Feb 2017 23:46:16 +0000 (00:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Feb 2017 03:06:43 +0000 (22:06 -0500)
In order to enable 2.5Gbps mode, we need the base speed of 10G, plus
the Alt bit setting. Fix a typ0 that used 1Gb base speed.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/port.c

index 0db7fa0..d380a93 100644 (file)
@@ -193,7 +193,7 @@ static int mv88e6xxx_port_set_speed(struct mv88e6xxx_chip *chip, int port,
                ctrl = PORT_PCS_CTRL_SPEED_1000;
                break;
        case 2500:
-               ctrl = PORT_PCS_CTRL_SPEED_1000 | PORT_PCS_CTRL_ALTSPEED;
+               ctrl = PORT_PCS_CTRL_SPEED_10000 | PORT_PCS_CTRL_ALTSPEED;
                break;
        case 10000:
                /* all bits set, fall through... */