linux_dsm_epyc7002/drivers/net/phy
Russell King df3f57ac96 net: phylink: extend clause 45 PHY validation workaround
Commit e45d1f5288 ("net: phylink: support Clause 45 PHYs on SFP+
modules") added a workaround to support clause 45 PHYs which
dynamically switch their interface mode on SFP+ modules.  This was
implemented by validating the PHYs supported/advertising using
PHY_INTERFACE_MODE_NA, rather than the specific interface mode that
we attached the PHY with.

However, we already have a situation where phylink is used to connect
a Marvell 88X3310 PHY which also behaves in exactly the same way, but
which seemingly doesn't need this.  The reason seems to be that the
mvpp2 driver sets a whole bunch of link modes for
PHY_INTERFACE_MODE_10GKR down to 10Mb/s, despite 10GBASE-R not actually
supporting anything but 10Gb/s speeds.

When testing with drivers that (correctly) take the mvneta approach,
where the validate() method only returns what can be supported /
advertised for the specified link mode, we find that Clause 45 PHYs do
not behave as we expect: their advertisement is restricted to what
the current link will support, rather than what the PHY supports
through its dynamic switching.

Extend this workaround to all such cases; if we have a Clause 45 PHY
attaching via any means, except in USXGMII, XAUI and RXAUI which are
all unable to support this dynamic switching or have other solutions
to it, then we need to validate using PHY_INTERFACE_MODE_NA.

This should allow mvpp2 to switch to a more conformant validate()
implementation.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-12-17 13:26:33 -08:00
..
adin.c
amd.c
aquantia_hwmon.c
aquantia_main.c
aquantia.h net: phy: Use the correct style for SPDX License Identifier 2019-11-27 11:25:48 -08:00
at803x.c
ax88796b.c
bcm7xxx.c
bcm63xx.c
bcm87xx.c
bcm84881.c net: phy: add Broadcom BCM84881 PHY driver 2019-12-11 11:53:42 -08:00
bcm-cygnus.c
bcm-phy-lib.c
bcm-phy-lib.h net: phy: Use the correct style for SPDX License Identifier 2019-11-27 11:25:48 -08:00
broadcom.c
cicada.c
cortina.c
davicom.c
dp83tc811.c
dp83640_reg.h
dp83640.c
dp83822.c
dp83848.c
dp83867.c net: phy: dp83867: Add rx-fifo-depth and tx-fifo-depth 2019-12-09 20:19:10 -08:00
dp83869.c net: phy: dp83869: Remove unneeded semicolon 2019-12-14 16:11:40 -08:00
et1011c.c
fixed_phy.c
icplus.c
intel-xway.c
Kconfig net: phy: add Broadcom BCM84881 PHY driver 2019-12-11 11:53:42 -08:00
lxt.c
Makefile net: phy: add Broadcom BCM84881 PHY driver 2019-12-11 11:53:42 -08:00
marvell10g.c net: sfp: derive interface mode from ethtool link modes 2019-12-11 11:53:41 -08:00
marvell.c
mdio_bus.c mdio_bus: don't use managed reset-controller 2019-11-25 10:43:40 -08:00
mdio_device.c
mdio-aspeed.c
mdio-bcm-iproc.c
mdio-bcm-unimac.c
mdio-bitbang.c
mdio-boardinfo.c
mdio-boardinfo.h
mdio-cavium.c
mdio-cavium.h net: phy: Use the correct style for SPDX License Identifier 2019-11-27 11:25:48 -08:00
mdio-gpio.c
mdio-hisi-femac.c
mdio-i2c.c net: mdio-i2c: add support for Clause 45 accesses 2019-12-11 11:53:41 -08:00
mdio-i2c.h net: phy: Use the correct style for SPDX License Identifier 2019-11-27 11:25:48 -08:00
mdio-moxart.c
mdio-mscc-miim.c
mdio-mux-bcm-iproc.c
mdio-mux-gpio.c
mdio-mux-meson-g12a.c
mdio-mux-mmioreg.c
mdio-mux-multiplexer.c
mdio-mux.c
mdio-octeon.c
mdio-sun4i.c phy: mdio-sun4i: add missed regulator_disable in remove 2019-11-18 17:22:40 -08:00
mdio-thunder.c phy: mdio-thunder: add missed pci_release_regions in remove 2019-12-06 12:05:06 -08:00
mdio-xgene.c
mdio-xgene.h net: phy: Use the correct style for SPDX License Identifier 2019-11-27 11:25:48 -08:00
meson-gxl.c
micrel.c
microchip_t1.c
microchip.c
mscc.c
national.c
nxp-tja11xx.c
phy_device.c net: phy: initialise phydev speed and duplex sanely 2019-11-23 10:46:41 -08:00
phy_led_triggers.c
phy-c45.c
phy-core.c net: phy: add helpers phy_(un)lock_mdio_bus 2019-11-25 10:47:00 -08:00
phy.c net: phy: remove phy_ethtool_sset() 2019-11-23 10:46:26 -08:00
phylink.c net: phylink: extend clause 45 PHY validation workaround 2019-12-17 13:26:33 -08:00
qsemi.c
realtek.c net: phy: realtek: fix using paged operations with RTL8105e / RTL8208 2019-12-01 13:14:21 -08:00
rockchip.c
sfp-bus.c net: phylink: delay MAC configuration for copper SFP modules 2019-12-11 11:53:41 -08:00
sfp.c net: sfp: re-attempt probing for phy 2019-12-11 12:46:12 -08:00
sfp.h net: sfp: add module start/stop upstream notifications 2019-12-11 11:53:41 -08:00
smsc.c
spi_ks8995.c
ste10Xp.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c