]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Set correct interface mode for CPU/DSA ports
authorAndrew Lunn <andrew@lunn.ch>
Fri, 8 Mar 2019 00:21:27 +0000 (01:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Mar 2019 06:55:28 +0000 (22:55 -0800)
commit37ef1ea8202ac8bd0afee543fe93dc9ea8b0a4dc
tree1058da590c8cb0b8d795eb20a006ed3d1bef7dd3
parentb7ffbef9cc3bc8bb61c4fe29bf5b27c4377d00d8
net: dsa: mv88e6xxx: Set correct interface mode for CPU/DSA ports

By default, the switch driver is expected to configure CPU and DSA
ports to their maximum speed. For the 6341 and 6390 families, the
ports interface mode has to be configured as well. The 6390X range
support 10G ports using XAUI, while the 6341 and 6390 supports
2500BaseX, as their maximum speed.

Fixes: ac4834081c7d ("net: dsa: mv88e6xxx: Default ports 9/10 6390X CMODE to 1000BaseX")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/dsa/mv88e6xxx/port.c
drivers/net/dsa/mv88e6xxx/port.h