]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: mv88e6xxx: Allow speed/duplex of port to be configured
authorAndrew Lunn <andrew@lunn.ch>
Mon, 31 Aug 2015 13:56:47 +0000 (15:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Aug 2015 21:48:01 +0000 (14:48 -0700)
commit4e2375569255a62cb95d9760a8c5f0b55cb58902
treec269b1e1f31ee5a3346c1ba94d498e944a24f9a3
parente5e343bcf2df48a7ef4cd7be70313c8c16453ab8
dsa: mv88e6xxx: Allow speed/duplex of port to be configured

The current code sets user ports to perform auto negotiation using the
phy. CPU and DSA ports are configured to full duplex and maximum speed
the switch supports.

There are however use cases where the CPU has a slower port, and when
user ports have SFP modules with fixed speed. In these cases, port
settings to be read from a fixed_phy devices. The switch driver then
needs to implement the adjust_link op, so the port settings can be
set.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6123_61_65.c
drivers/net/dsa/mv88e6131.c
drivers/net/dsa/mv88e6171.c
drivers/net/dsa/mv88e6352.c
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h