OSDN Git Service

net: dsa: mv88e6xxx: Fix 88E6141/6341 2500mbps SERDES speed
authorMarek Behún <marek.behun@nic.cz>
Sat, 13 Oct 2018 12:40:31 +0000 (14:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 04:56:15 +0000 (21:56 -0700)
commit26422340da467538cd65eaa9c65538039ee99c8c
tree785fb6d1e41a7f9a3998f0c371e816d50cd6470e
parente943d94e4b7c54ee7b51852d91f9699e041bffd7
net: dsa: mv88e6xxx: Fix 88E6141/6341 2500mbps SERDES speed

This is a fix for the port_set_speed method for the Topaz family.
Currently the same method is used as for the Peridot family, but
this is wrong for the SERDES port.

On Topaz, the SERDES port is port 5, not 9 and 10 as in Peridot.
Moreover setting alt_bit on Topaz only makes sense for port 0 (for
(differentiating 100mbps vs 200mbps). The SERDES port does not
support more than 2500mbps, so alt_bit does not make any difference.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/port.c
drivers/net/dsa/mv88e6xxx/port.h