linux-stable/drivers/net
Kai-Heng Feng e74a4dc8f2 r8152: Set macpassthru in reset_resume callback
[ Upstream commit a54cdeeb04 ]

r8152 may fail to establish network connection after resume from system
suspend.

If the USB port connects to r8152 lost its power during system suspend,
the MAC address was written before is lost. The reason is that The MAC
address doesn't get written again in its reset_resume callback.

So let's set MAC address again in reset_resume callback. Also remove
unnecessary lock as no other locking attempt will happen during
reset_resume.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-29 09:16:59 +01:00
..
appletalk
arcnet arcnet: provide a buffer big enough to actually receive packets 2019-10-05 12:47:39 +02:00
bonding bonding: Force slave speed check after link state recovery for 802.3ad 2019-08-29 08:26:38 +02:00
caif caif-hsi: fix possible deadlock in cfhsi_exit_module() 2019-07-31 07:28:44 +02:00
can can: mcp251x: mcp251x_hw_reset(): allow more time after a reset 2019-10-11 18:18:31 +02:00
cris
dsa net: dsa: qca8k: Use up to 7 ports for all operations 2019-10-29 09:16:55 +01:00
ethernet net: hisilicon: Fix usage of uninitialized variable in function mdio_sc_cfg_reg_write() 2019-10-29 09:16:58 +01:00
fddi
fjes
hamradio
hippi
hyperv hv_netvsc: Fix a warning of suspicious RCU usage 2019-09-10 10:32:12 +01:00
ieee802154 ieee802154: ca8210: prevent memory leak 2019-10-29 09:16:54 +01:00
ipvlan net: ipvlan: Fix ipvlan device tso disabled while NETIF_F_IP_CSUM is set 2019-06-25 11:36:53 +08:00
phy net/phy: fix DP83865 10 Mbps HDX loopback disable function 2019-10-05 12:47:40 +02:00
plip
ppp ppp: Fix memory leak in ppp_write 2019-10-05 12:47:41 +02:00
slip
team team: Add vlan tx offload to hw_enc_features 2019-08-25 10:50:29 +02:00
usb r8152: Set macpassthru in reset_resume callback 2019-10-29 09:16:59 +01:00
vmxnet3
wan
wimax wimax/i2400m: fix a memory leak bug 2019-09-10 10:32:16 +01:00
wireless libertas: Add missing sentinel at end of if_usb.c fw_table 2019-10-05 12:48:02 +02:00
xen-netback xen/netback: Reset nr_frags before freeing skb 2019-08-25 10:50:27 +02:00
dummy.c
eql.c
geneve.c
gtp.c gtp: fix use-after-free in gtp_newlink() 2019-07-31 07:28:33 +02:00
ifb.c
Kconfig gtp: change NET_UDP_TUNNEL dependency to select 2019-05-16 19:42:30 +02:00
LICENSE.SRC
loopback.c
macsec.c macsec: drop skb sk before calling gro_cells_receive 2019-10-05 12:47:40 +02:00
macvlan.c
macvtap.c
Makefile net: Always descend into dsa/ 2019-05-25 18:25:17 +02:00
mdio.c
mii.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
tun.c tun: fix use-after-free when register netdev failed 2019-09-19 09:08:02 +02:00
veth.c
virtio_net.c
vrf.c vrf: make sure skb->data contains ip header to make routing 2019-07-31 07:28:45 +02:00
vsockmon.c
vxlan.c
xen-netfront.c xen-netfront: do not use ~0U as error return value for xennet_fill_frags() 2019-10-07 18:55:20 +02:00