]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdad1242c6ab199413d943891b9f6a586c72e829f
treeec0642f7a92fcfd7e8bb253eec27af2b4cb1ed84
parent1135b1e7df1ee212c4ece79cf53437f59038b179
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