From: Andrew Lunn Date: Thu, 9 Aug 2018 13:38:44 +0000 (+0200) Subject: net: dsa: mv88e6xxx: 2500Base-X uses the 1000Base-X SERDES X-Git-Tag: v4.19~410^2~84^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8236a0835597b166a9f0bab38b9b31bd932ce98;p=platform%2Fkernel%2Flinux-rpi3.git net: dsa: mv88e6xxx: 2500Base-X uses the 1000Base-X SERDES 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/dsa/mv88e6xxx/serdes.c b/drivers/net/dsa/mv88e6xxx/serdes.c index 36050e4..b57d427 100644 --- a/drivers/net/dsa/mv88e6xxx/serdes.c +++ b/drivers/net/dsa/mv88e6xxx/serdes.c @@ -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); }