]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Refactor SERDES lane code
authorAndrew Lunn <andrew@lunn.ch>
Thu, 9 Aug 2018 13:38:40 +0000 (15:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 18:08:20 +0000 (11:08 -0700)
commit5e77ddb8ccea9d12478585eb611c515c1191c71e
tree6efc4de4686199e6a701ee4a0819f6b8c68eae44
parentfa676354f7ca2d1e72e508fd7681f25ef6cbf948
net: dsa: mv88e6xxx: Refactor SERDES lane code

The 6390 family has 8 SERDES lanes. What ports use these lanes depends
on how ports 9 and 10 are configured. If 9 and 10 does not make use of
a line, one of the lower ports can use it.

Add a function to return the lane a port is using, if any, and simplify
the code to power up/down the lane.

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