diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2008-10-07 09:45:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-08 20:24:09 -0400 |
commit | 2e5f032095ff101274dfb03d5fd5e06d9aeb83cd (patch) | |
tree | eeb61cf6665452288a25434c54bc8d4ff8031cef /net/dsa/Kconfig | |
parent | cf85d08fdf4548ee46657ccfb7f9949a85145db5 (diff) |
dsa: add support for the Marvell 88E6131 switch chip
Add support for the Marvell 88E6131 switch chip. This chip only
supports the original (ethertype-less) DSA tagging format.
On the 88E6131, there is a PHY Polling Unit (PPU) which has exclusive
access to each of the PHYs's MII management registers. If we want to
talk to the PHYs from software, we have to disable the PPU and wait
for it to complete its current transaction before we can do so, and we
need to re-enable the PPU afterwards to make sure that the switch will
notice changes in link state and speed on the individual ports as they
occur.
Since disabling the PPU is rather slow, and since MII management
accesses are typically done in bursts, this patch keeps the PPU disabled
for 10ms after a software access completes. This makes handling the
PPU slightly more complex, but speeds up something like running ethtool
on one of the switch slave interfaces from ~300ms to ~30ms on typical
hardware.
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Tested-by: Nicolas Pitre <nico@marvell.com>
Tested-by: Peter van Valderen <linux@ddcrew.com>
Tested-by: Dirk Teurlings <dirk@upexia.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/Kconfig')
-rw-r--r-- | net/dsa/Kconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/dsa/Kconfig b/net/dsa/Kconfig index 6b68016827da..79bcd76d3f10 100644 --- a/net/dsa/Kconfig +++ b/net/dsa/Kconfig | |||
@@ -24,6 +24,19 @@ config NET_DSA_MV88E6XXX | |||
24 | bool | 24 | bool |
25 | default n | 25 | default n |
26 | 26 | ||
27 | config NET_DSA_MV88E6XXX_NEED_PPU | ||
28 | bool | ||
29 | default n | ||
30 | |||
31 | config NET_DSA_MV88E6131 | ||
32 | bool "Marvell 88E6131 ethernet switch chip support" | ||
33 | select NET_DSA_MV88E6XXX | ||
34 | select NET_DSA_MV88E6XXX_NEED_PPU | ||
35 | select NET_DSA_TAG_DSA | ||
36 | ---help--- | ||
37 | This enables support for the Marvell 88E6131 ethernet switch | ||
38 | chip. | ||
39 | |||
27 | config NET_DSA_MV88E6123_61_65 | 40 | config NET_DSA_MV88E6123_61_65 |
28 | bool "Marvell 88E6123/6161/6165 ethernet switch chip support" | 41 | bool "Marvell 88E6123/6161/6165 ethernet switch chip support" |
29 | select NET_DSA_MV88E6XXX | 42 | select NET_DSA_MV88E6XXX |