]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb65fb01ddd91020975039ab803fe3371b80ddb82
tree785fb6d1e41a7f9a3998f0c371e816d50cd6470e
parent529c9696e369a6096ccd0ca96ac46e44c73cc7eb
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