WSL2-Linux-Kernel/drivers
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
..
accessibility
acpi ACPI: VIOT: Initialize the correct IOMMU fwspec 2023-05-11 23:00:23 +09:00
amba
android
ata
atm atm: idt77252: fix kmemleak when rmmod idt77252 2023-03-30 12:47:48 +02:00
auxdisplay
base platform: Provide a remove callback that returns no value 2023-05-11 23:00:24 +09:00
bcma
block loop: LOOP_CONFIGURE: send uevents for partitions 2023-04-05 11:24:56 +02:00
bluetooth Bluetooth: btsdio: fix use after free bug in btsdio_remove due to unfinished work 2023-03-30 12:47:50 +02:00
bus bus: imx-weim: fix branch condition evaluates to a garbage value 2023-04-05 11:24:52 +02:00
cdrom
char tpm, tpm_tis: Claim locality when interrupts are reenabled on resume 2023-05-11 23:00:19 +09:00
clk clk: sprd: set max_register according to mapping range 2023-04-20 12:13:52 +02:00
clocksource
comedi
connector
counter counter: 104-quad-8: Fix race condition between FLAG and CNTR reads 2023-04-26 13:51:55 +02:00
cpufreq cpufreq: use correct unit when verify cur freq 2023-05-11 23:00:25 +09:00
cpuidle
crypto crypto: sa2ul - Select CRYPTO_DES 2023-05-11 23:00:27 +09:00
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac EDAC/skx: Fix overflows on the DRAM row address mapping arrays 2023-05-11 23:00:20 +09:00
eisa
extcon
firewire
firmware firmware: arm_scmi: Fix xfers allocation on Rx channel 2023-05-11 23:00:23 +09:00
fpga
fsi
gnss
gpio gpio: davinci: Add irq chip flag to skip set wake 2023-04-13 16:48:19 +02:00
gpu drm/i915: Make intel_get_crtc_new_encoder() less oopsy 2023-05-11 23:00:25 +09:00
greybus
hid HID: intel-ish-hid: ipc: Fix potential use-after-free in work function 2023-03-30 12:47:53 +02:00
hsi
hv Drivers: vmbus: Check for channel allocation before looking up relids 2023-04-13 16:48:17 +02:00
hwmon hwmon: (pmbus/fsp-3y) Fix functionality bitmask in FSP-3Y YM-2151E 2023-05-11 23:00:25 +09:00
hwspinlock
hwtracing coresight-etm4: Fix for() loop drvdata->nr_addr_cmp range bug 2023-04-13 16:48:23 +02:00
i2c i2c: omap: Fix standard mode false ACK readings 2023-05-11 23:00:18 +09:00
i3c
idle
iio iio: adc: palmas_gpadc: fix NULL dereference on rmmod 2023-05-11 23:00:15 +09:00
infiniband RDMA/core: Fix GID entry ref leak when create_ah fails 2023-04-20 12:13:53 +02:00
input Input: i8042 - add quirk for Fujitsu Lifebook A574/H 2023-04-26 13:51:50 +02:00
interconnect
iommu iommu/amd: Fix "Guest Virtual APIC Table Root Pointer" configuration in IRTE 2023-05-11 23:00:18 +09:00
ipack
irqchip
isdn
leds
macintosh
mailbox mailbox: mpfs: switch to txdone_poll 2023-05-11 23:00:23 +09:00
mcb
md md/raid10: don't call bio_start_io_acct twice for bio which experienced read error 2023-05-11 23:00:29 +09:00
media media: venus: dec: Fix handling of the start cmd 2023-05-11 23:00:24 +09:00
memory
memstick memstick: fix memory leak if card device is never registered 2023-04-26 13:51:51 +02:00
message
mfd
misc
mmc mmc: sdhci-of-esdhc: fix quirk to ignore command inhibit for data 2023-05-11 23:00:23 +09:00
most
mtd ubi: Fix return value overwrite issue in try_write_vid_and_data() 2023-05-11 23:00:18 +09:00
mux
net net: stmmac:fix system hang when setting up tag_8021q VLAN for DSA ports 2023-05-11 23:00:30 +09:00
nfc
ntb
nubus
nvdimm
nvme nvme-fcloop: fix "inconsistent {IN-HARDIRQ-W} -> {HARDIRQ-ON-W} usage" 2023-05-11 23:00:28 +09:00
nvmem
of
opp
parisc
parport
pci PCI: qcom: Fix the incorrect register usage in v2.7.0 config 2023-05-11 23:00:15 +09:00
pcmcia
perf
phy
pinctrl pinctrl: qcom: lpass-lpi: set output value before enabling output 2023-05-11 23:00:17 +09:00
platform platform/x86: gigabyte-wmi: add support for X570S AORUS ELITE 2023-04-26 13:51:51 +02:00
pnp
power power: supply: cros_usbpd: reclassify "default case!" as debug 2023-04-20 12:13:54 +02:00
powercap
pps
ps3
ptp ptp_qoriq: fix memory leak in probe() 2023-04-05 11:24:55 +02:00
pwm pwm: meson: Fix g12a ao clk81 name 2023-05-11 23:00:17 +09:00
rapidio
ras
regulator regulator: stm32-pwr: fix of_iomap leak 2023-05-11 23:00:24 +09:00
remoteproc
reset
rpmsg
rtc
s390 s390/vfio-ap: fix memory leak in vfio_ap device driver 2023-04-05 11:24:56 +02:00
sbus
scsi scsi: lpfc: Fix ioremap issues in lpfc_sli4_pci_mem_setup() 2023-05-11 23:00:28 +09:00
sh
siox
slimbus
soc soc: ti: pm33xx: Fix refcount leak in am33xx_pm_probe 2023-05-11 23:00:20 +09:00
soundwire soundwire: qcom: correct setting ignore bit on v1.5.1 2023-05-11 23:00:17 +09:00
spi spi: spi-rockchip: Fix missing unwind goto in rockchip_sfc_probe() 2023-04-26 13:51:49 +02:00
spmi
ssb
staging media: rkvdec: fix use after free bug in rkvdec_remove 2023-05-11 23:00:24 +09:00
target scsi: target: iscsit: Fix TAS handling during conn cleanup 2023-05-11 23:00:26 +09:00
tc
tee tee: amdtee: fix race condition in amdtee_open_session 2023-03-30 12:47:59 +02:00
thermal
thunderbolt thunderbolt: Rename shadowed variables bit to interrupt_bit and auto_clear_bit 2023-03-30 12:47:52 +02:00
tty tty: Prevent writing chars during tcsetattr TCSADRAIN/FLUSH 2023-05-11 23:00:16 +09:00
uio
usb xhci: fix debugfs register accesses while suspended 2023-05-11 23:00:16 +09:00
vdpa
vfio
vhost
video fbmem: Reject FB_ACTIVATE_KD_TEXT from userspace 2023-04-20 12:13:52 +02:00
virt
virtio
visorbus
vlynq
vme
w1
watchdog
xen ACPI: processor: Fix evaluating _PDC method when running as Xen dom0 2023-05-11 23:00:22 +09:00
zorro
Kconfig
Makefile