WSL2-Linux-Kernel/drivers/net
Yan Wang 77f245ce05 net: stmmac:fix system hang when setting up tag_8021q VLAN for DSA ports
[ Upstream commit 35226750f7 ]

The system hang because of dsa_tag_8021q_port_setup()->
				stmmac_vlan_rx_add_vid().

I found in stmmac_drv_probe() that cailing pm_runtime_put()
disabled the clock.

First, when the kernel is compiled with CONFIG_PM=y,The stmmac's
resume/suspend is active.

Secondly,stmmac as DSA master,the dsa_tag_8021q_port_setup() function
will callback stmmac_vlan_rx_add_vid when DSA dirver starts. However,
The system is hanged for the stmmac_vlan_rx_add_vid() accesses its
registers after stmmac's clock is closed.

I would suggest adding the pm_runtime_resume_and_get() to the
stmmac_vlan_rx_add_vid().This guarantees that resuming clock output
while in use.

Fixes: b3dcb31277 ("net: stmmac: correct clocks enabled in stmmac_vlan_rx_kill_vid()")
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Yan Wang <rk.code@outlook.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:00:30 +09:00
..
appletalk
arcnet arcnet: fix potential memory leak in com20020_probe() 2022-12-02 17:41:07 +01:00
bonding bonding: Fix memory leak when changing bond type to Ethernet 2023-04-26 13:51:49 +02:00
caif caif_virtio: fix race between virtio_device_ready() and ndo_open() 2022-07-07 17:53:27 +02:00
can can: esd_usb: Move mislocated storage of SJA1000_ECC_SEG bits in case of a bus error 2023-03-10 09:39:18 +01:00
dsa net: dsa: b53: mmap: add phy ops 2023-04-26 13:51:50 +02:00
ethernet net: stmmac:fix system hang when setting up tag_8021q VLAN for DSA ports 2023-05-11 23:00:30 +09:00
fddi net: defxx: Fix missing err handling in dfx_init() 2022-12-31 13:14:18 +01:00
fjes
hamradio hamradio: baycom_epp: Fix return type of baycom_send_packet() 2022-12-31 13:14:41 +01:00
hippi drivers: net: hippi: Fix deadlock in rr_close() 2022-05-09 09:14:40 +02:00
hyperv hv_netvsc: Check status in SEND_RNDIS_PKT completion message 2023-03-10 09:39:51 +01:00
ieee802154 ca8210: Fix unsigned mac_len comparison with zero in ca8210_skb_tx() 2023-04-05 11:24:54 +02:00
ipa net: ipa: compute DMA pool size properly 2023-04-05 11:24:57 +02:00
ipvlan ipvlan: Make skb->skb_iif track skb->dev for l3s mode 2023-03-22 13:31:24 +01:00
mctp
mdio net: mdio: thunder: Add missing fwnode_handle_put() 2023-03-30 12:47:50 +02:00
netdevsim netdevsim: remove dir in nsim_dev_debugfs_init() when creating ports dir failed 2022-11-03 23:59:19 +09:00
pcs net: pcs: xpcs: remove double-read of link state when using AN 2023-05-11 23:00:26 +09:00
phy net: phy: nxp-c45-tja11xx: fix unsigned long multiplication overflow 2023-04-20 12:13:55 +02:00
plip net: plip: don't call kfree_skb/dev_kfree_skb() under spin_lock_irq() 2022-12-14 11:37:29 +01:00
ppp ppp: associate skb with a device at tx 2022-12-31 13:14:42 +01:00
slip
team net: team: Unsync device addresses on ndo_stop 2022-09-28 11:11:48 +02:00
usb net: usb: qmi_wwan: add Telit 0x1080 composition 2023-03-30 12:47:54 +02:00
vmxnet3 vmxnet3: correctly report csum_level for encapsulated packet 2023-01-12 11:59:09 +01:00
wan net: wan: Add checks for NULL for utdm in undo_uhdlc_init and unmap_si_regs 2023-02-01 08:27:08 +01:00
wireguard wireguard: timers: cast enum limits members to int in prints 2023-05-11 23:00:15 +09:00
wireless wifi: iwlwifi: fw: fix memory leak in debugfs 2023-05-11 23:00:30 +09:00
wwan net: wwan: iosm: fix dma_alloc_coherent incompatible pointer type 2022-12-08 11:28:41 +01:00
xen-netback xen/netback: use same error messages for same errors 2023-04-26 13:51:51 +02:00
Kconfig lib/crypto: blake2s: include as built-in 2022-05-30 09:28:59 +02:00
LICENSE.SRC
Makefile
Space.c
bareudp.c
dummy.c
eql.c
geneve.c geneve: fix TOS inheriting for ipv4 2022-08-25 11:40:15 +02:00
gtp.c
ifb.c
loopback.c net: loopback: use NET_NAME_PREDICTABLE for name_assign_type 2022-12-21 17:36:38 +01:00
macsec.c net: macsec: fix net device access prior to holding a lock 2022-12-31 13:14:37 +01:00
macvlan.c macvlan: enforce a consistent minimal mtu 2022-11-26 09:24:50 +01:00
macvtap.c
mdio.c
mhi_net.c net: mhi: Fix memory leak in mhi_net_dellink() 2022-11-26 09:24:40 +01:00
mii.c
net_failover.c net/net_failover: fix txq exceeding warning 2023-04-05 11:24:55 +02:00
netconsole.c
nlmon.c
ntb_netdev.c ntb_netdev: Use dev_kfree_skb_any() in interrupt context 2022-12-31 13:14:20 +01:00
rionet.c
sb1000.c
sungem_phy.c net: sungem_phy: Add of_node_put() for reference returned by of_get_parent() 2022-08-03 12:03:48 +02:00
tap.c tap: tap_open(): correctly initialize socket uid 2023-03-10 09:39:15 +01:00
thunderbolt.c net: thunderbolt: fix memory leak in tbnet_open() 2022-12-14 11:37:30 +01:00
tun.c tun: tun_chr_open(): correctly initialize socket uid 2023-03-10 09:39:15 +01:00
veth.c veth: Fix race with AF_XDP exposing old or uninitialized descriptors 2023-01-12 11:59:09 +01:00
virtio_net.c virtio_net: bugfix overflow inside xdp_linearize_page() 2023-04-26 13:51:47 +02:00
vrf.c
vsockmon.c
vxlan.c vxlan: fix error return code in vxlan_fdb_append 2022-04-27 14:38:55 +02:00
xen-netfront.c xen-netfront: Fix NULL sring after live migration 2022-12-14 11:37:26 +01:00