linux-xiaomi-chiron/drivers/net/phy
Guangbin Huang d9032dba5a net: phy: fix save wrong speed and duplex problem if autoneg is on
If phy uses generic driver and autoneg is on, enter command
"ethtool -s eth0 speed 50" will not change phy speed actually, but
command "ethtool eth0" shows speed is 50Mb/s because phydev->speed
has been set to 50 and no update later.

And duplex setting has same problem too.

However, if autoneg is on, phy only changes speed and duplex according to
phydev->advertising, but not phydev->speed and phydev->duplex. So in this
case, phydev->speed and phydev->duplex don't need to be set in function
phy_ethtool_ksettings_set() if autoneg is on.

Fixes: 51e2a3846e ("PHY: Avoid unnecessary aneg restarts")
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-03-01 13:16:16 -08:00
..
mscc net: phy: mscc: coma mode disabled for VSC8514 2021-02-16 14:06:19 -08:00
adin.c
amd.c
aquantia.h
aquantia_hwmon.c
aquantia_main.c
at803x.c net: phy: at803x: add MDIX support to AR8031/33 2021-02-15 15:20:00 -08:00
ax88796b.c
bcm-cygnus.c
bcm-phy-lib.c
bcm-phy-lib.h
bcm7xxx.c net: phy: bcm7xxx: Add an entry for BCM72116 2021-01-07 14:46:09 -08:00
bcm63xx.c
bcm87xx.c
bcm54140.c
bcm84881.c
broadcom.c net: phy: broadcom: Do not modify LED configuration for SFP module PHYs 2021-02-16 15:23:23 -08:00
cicada.c
cortina.c
davicom.c
dp83tc811.c net: phy: ti: take into account all possible interrupt sources 2021-03-01 11:46:55 -08:00
dp83640.c net: phy: dp83640: use new PTP_MSGTYPE_SYNC define 2020-11-25 12:23:06 -08:00
dp83640_reg.h
dp83822.c net: phy: ti: take into account all possible interrupt sources 2021-03-01 11:46:55 -08:00
dp83848.c net: phy: ti: remove the use of .ack_interrupt() 2020-11-25 11:18:38 -08:00
dp83867.c net: phy: ti: remove the use of .ack_interrupt() 2020-11-25 11:18:38 -08:00
dp83869.c net: phy: introduce phydev->port 2021-02-11 13:09:58 -08:00
et1011c.c
fixed_phy.c
icplus.c net: phy: icplus: call phy_restore_page() when phy_select_page() fails 2021-02-22 18:47:48 -08:00
intel-xway.c net: phy: intel-xway: remove the use of .ack_interrupt() 2020-11-25 11:18:37 -08:00
Kconfig
linkmode.c
lxt.c net: phy: introduce phydev->port 2021-02-11 13:09:58 -08:00
Makefile
marvell.c net: phy: marvell: Ensure SGMII auto-negotiation is enabled for 88E1111 2021-02-16 14:16:58 -08:00
marvell10g.c net: phy: introduce phydev->port 2021-02-11 13:09:58 -08:00
mdio-boardinfo.c
mdio-boardinfo.h
mdio_bus.c net: mdiobus: Prevent spike on MDIO bus reset signal 2021-02-03 17:28:05 -08:00
mdio_device.c
mdio_devres.c
meson-gxl.c net: phy: meson-gxl: remove the use of .ack_callback() 2020-11-25 11:18:37 -08:00
micrel.c net: phy: micrel: set soft_reset callback to genphy_soft_reset for KSZ8081 2021-02-25 09:51:31 -08:00
microchip.c
microchip_t1.c
mii_timestamper.c
national.c net: phy: national: remove definition of DEBUG 2021-01-18 20:03:01 -08:00
nxp-tja11xx.c
phy-c45.c
phy-core.c
phy.c net: phy: fix save wrong speed and duplex problem if autoneg is on 2021-03-01 13:16:16 -08:00
phy_device.c net: phy: make mdio_bus_phy_suspend/resume as __maybe_unused 2021-02-26 15:43:25 -08:00
phy_led_triggers.c
phylink.c net: phylink: Add 5gbase-r support 2021-02-16 14:15:12 -08:00
qsemi.c net: phy: qsemi: remove the use of .ack_interrupt() 2020-11-25 11:18:38 -08:00
realtek.c net: phy: realtek: Add support for RTL9000AA/AN 2021-01-22 18:06:42 -08:00
rockchip.c
sfp-bus.c sfp: add support for 5gbase-t SFPs 2021-02-16 14:15:12 -08:00
sfp.c net: sfp: add mode quirk for GPON module Ubiquiti U-Fiber Instant 2021-01-28 13:41:17 -08:00
sfp.h
smsc.c net: phy: smsc: fix clk error handling 2021-01-12 18:39:19 -08:00
spi_ks8995.c
ste10Xp.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c