diff options
author | Andrew Lunn <andrew@lunn.ch> | 2015-08-31 15:56:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-31 23:48:01 +0200 |
commit | dea870242a9c4ea74b3ca0f2da3f864c47484cff (patch) | |
tree | c269b1e1f31ee5a3346c1ba94d498e944a24f9a3 /drivers/net/dsa/mv88e6131.c | |
parent | net: phy: Allow PHY devices to identify themselves as Ethernet switches, etc. (diff) | |
download | linux-dea870242a9c4ea74b3ca0f2da3f864c47484cff.tar.xz linux-dea870242a9c4ea74b3ca0f2da3f864c47484cff.zip |
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>
Diffstat (limited to 'drivers/net/dsa/mv88e6131.c')
-rw-r--r-- | drivers/net/dsa/mv88e6131.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6131.c b/drivers/net/dsa/mv88e6131.c index 32f4a08e9bc9..3e8386529965 100644 --- a/drivers/net/dsa/mv88e6131.c +++ b/drivers/net/dsa/mv88e6131.c @@ -182,6 +182,7 @@ struct dsa_switch_driver mv88e6131_switch_driver = { .get_strings = mv88e6xxx_get_strings, .get_ethtool_stats = mv88e6xxx_get_ethtool_stats, .get_sset_count = mv88e6xxx_get_sset_count, + .adjust_link = mv88e6xxx_adjust_link, }; MODULE_ALIAS("platform:mv88e6085"); |