android_kernel_motorola_sm6375/drivers/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Guangbin Huang 2e24fd30c6 net: phy: fix save wrong speed and duplex problem if autoneg is on
[ Upstream commit d9032dba5a2b2bbf0fdce67c8795300ec9923b43 ]

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 <[email protected]>
Signed-off-by: Huazhong Tan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2021-03-17 17:03:41 +01:00
..
appletalk
arcnet
bonding bonding: wait for sysfs kobject destruction before freeing struct slave 2020-12-08 10:40:24 +01:00
caif
can can: tcan4x5x: tcan4x5x_init(): fix initialization - clear MRAM before entering Normal Mode 2021-03-17 17:03:32 +01:00
dsa net: dsa: mv88e6xxx: override existent unicast portvec in port_fdb_add 2021-02-10 09:25:33 +01:00
ethernet net: enetc: initialize RFS/RSS memories for unused ports too 2021-03-17 17:03:40 +01:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipvlan
netdevsim netdevsim: init u64 stats for 32bit hardware 2021-03-17 17:03:35 +01:00
phy net: phy: fix save wrong speed and duplex problem if autoneg is on 2021-03-17 17:03:41 +01:00
plip
ppp
slip
team team: protect features update by RCU to avoid deadlock 2021-02-03 23:26:02 +01:00
usb net: usb: qmi_wwan: allow qmimux add/del with master up 2021-03-17 17:03:35 +01:00
vmxnet3
wan net: lapbether: Remove netif_start_queue / netif_stop_queue 2021-03-17 17:03:36 +01:00
wimax
wireless mt76: dma: do not report truncated frames to mac80211 2021-03-17 17:03:33 +01:00
xen-netback xen-netback: respect gnttab_map_refs()'s return value 2021-03-07 12:20:49 +01:00
dummy.c
eql.c
geneve.c Revert "geneve: pull IP header before ECN decapsulation" 2020-12-11 13:23:33 +01:00
gtp.c net: icmp: pass zeroed opts from icmp{,v6}_ndo_send before sending 2021-03-04 10:26:53 +01:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c net: fix dev_ifsioc_locked() race condition 2021-03-07 12:20:43 +01:00
thunderbolt.c
tun.c net: fix dev_ifsioc_locked() race condition 2021-03-07 12:20:43 +01:00
veth.c
virtio_net.c virtio_net: Fix recursive call to cpus_read_lock() 2021-01-12 20:16:12 +01:00
vrf.c vrf: packets with lladdr src needs dst at input with orig_iif when needs strict 2020-12-21 13:27:03 +01:00
vsockmon.c
vxlan.c vxlan: move debug check after netdev unregister 2021-03-04 10:26:38 +01:00
xen-netfront.c