commit | a8c01c0d941d2f220a5a31ded77a67d89ddec3b0 | [log] [tgz] |
---|---|---|
author | Andrew Lunn <andrew@lunn.ch> | Thu Aug 09 15:38:40 2018 +0200 |
committer | David S. Miller <davem@davemloft.net> | Thu Aug 09 11:08:20 2018 -0700 |
tree | 6efc4de4686199e6a701ee4a0819f6b8c68eae44 | |
parent | 6c422e34b1b6533af5730280835365d4b50786d3 [diff] |
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>