diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-02-03 16:30:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-03 17:10:35 +0300 |
commit | 7f7d32bc2608075bba1055b0c8dcd8499643a814 (patch) | |
tree | fd8810c53c7092e8041844ee6255d7bd51c32fc7 /tools/testing/selftests/zram/zram01.sh | |
parent | 2ee84cfefb1e72541d3981e0255fba1dee907ff7 (diff) | |
download | linux-7f7d32bc2608075bba1055b0c8dcd8499643a814.tar.xz |
net: dsa: mv88e6xxx: improve 88e6352 serdes statistics detection
The decision whether to report serdes statistics currently depends on
the cached C_Mode value for the port, read at probe time or updated by
configuration. However, port 4 can be in "automedia" mode when it is
used as a serdes port, meaning it switches between the internal PHY and
the serdes, changing the read-only C_Mode value depending on which
first gains link. Consequently, the C_Mode value read at probe does not
accurately reflect whether the port has the serdes associated with it.
In "net: dsa: mv88e6xxx: add mv88e6352_g2_scratch_port_has_serdes()",
we added a way to read the hardware configuration to determine which
port has the serdes associated with it. Use this to determine which
port reports the serdes statistics.
Reviewed-by: Marek BehĂșn <kabel@kernel.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/zram/zram01.sh')
0 files changed, 0 insertions, 0 deletions