net: dsa: mv88e6xxx: implement mv88e6352_serdes_get_lane
authorVivien Didelot <vivien.didelot@gmail.com>
Sat, 31 Aug 2019 20:18:31 +0000 (16:18 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Sep 2019 19:16:38 +0000 (12:16 -0700)
commit9db4a7257e601491cf8e0b7e7e1461f7cde294bb
treeec0642f7a92fcfd7e8bb253eec27af2b4cb1ed84
parent5122d4ec9e8053a5944bf77db6bd6c89143531d7
net: dsa: mv88e6xxx: implement mv88e6352_serdes_get_lane

Even though 88E6352 has no dedicated lane for SERDES interfaces, it
uses a similar code as the other .serdes_get_lane implementations to
check the port's CMODE and ensure that SERDES operations are doable.

For consistency, implement mv88e6352_serdes_get_lane for the 88E6352
and similar switches which simply returns an unused 0xff lane address.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/serdes.c
drivers/net/dsa/mv88e6xxx/serdes.h