net: dsa: mv88e6xxx: 2500Base-X uses the 1000Base-X SERDES
authorAndrew Lunn <andrew@lunn.ch>
Thu, 9 Aug 2018 13:38:44 +0000 (15:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 18:08:20 +0000 (11:08 -0700)
The 6390 has three different SERDES interface types. 2500Base-X is
implemented by the SGMII/1000Base-X SERDES. So power on/off the
correct SERDES.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/serdes.c

index 36050e4299243c0fb67d7a0d91bb75101852d475..b57d4271acdbb1420bd99b26ceb1cb82bf1f9d22 100644 (file)
@@ -375,10 +375,10 @@ static int mv88e6390_serdes_power_lane(struct mv88e6xxx_chip *chip, int port,
        switch (cmode) {
        case MV88E6XXX_PORT_STS_CMODE_SGMII:
        case MV88E6XXX_PORT_STS_CMODE_1000BASE_X:
+       case MV88E6XXX_PORT_STS_CMODE_2500BASEX:
                return mv88e6390_serdes_power_sgmii(chip, lane, on);
        case MV88E6XXX_PORT_STS_CMODE_XAUI:
        case MV88E6XXX_PORT_STS_CMODE_RXAUI:
-       case MV88E6XXX_PORT_STS_CMODE_2500BASEX:
                return mv88e6390_serdes_power_10g(chip, lane, on);
        }