WSL2-Linux-Kernel/drivers/usb/chipidea
Xu Yang 2e349cf0d0 usb: chipidea: wait controller resume finished for wakeup irq
commit 128d849074d05545becf86e713715ce7676fc074 upstream.

After the chipidea driver introduce extcon for id and vbus, it's able
to wakeup from another irq source, in case the system with extcon ID
cable, wakeup from usb ID cable and device removal, the usb device
disconnect irq may come firstly before the extcon notifier while system
resume, so we will get 2 "wakeup" irq, one for usb device disconnect;
and one for extcon ID cable change(real wakeup event), current driver
treat them as 2 successive wakeup irq so can't handle it correctly, then
finally the usb irq can't be enabled. This patch adds a check to bypass
further usb events before controller resume finished to fix it.

Fixes: 1f874edcb7 ("usb: chipidea: add runtime power management support")
cc:  <stable@vger.kernel.org>
Acked-by: Peter Chen <peter.chen@kernel.org>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Link: https://lore.kernel.org/r/20231228110753.1755756-2-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-25 14:52:47 -08:00
..
Kconfig
Makefile
bits.h
ci.h usb: chipidea: core: fix possible concurrent when switch role 2023-03-30 12:47:57 +02:00
ci_hdrc_imx.c usb: chipidea: imx: improve logic if samsung,picophy-* parameter is 0 2023-09-06 21:28:38 +01:00
ci_hdrc_imx.h
ci_hdrc_msm.c
ci_hdrc_pci.c
ci_hdrc_tegra.c
ci_hdrc_usb2.c
core.c usb: chipidea: wait controller resume finished for wakeup irq 2024-01-25 14:52:47 -08:00
debug.c USB: chipidea: fix memory leak with using debugfs_lookup() 2023-03-11 13:57:35 +01:00
host.c usb: chipidea: Simplify Tegra DMA alignment code 2023-11-20 11:08:25 +01:00
host.h
otg.c usb: chipidea: core: fix possible concurrent when switch role 2023-03-30 12:47:57 +02:00
otg.h
otg_fsm.c usb: chipidea: fix deadlock in ci_otg_del_timer 2022-11-26 09:24:45 +01:00
otg_fsm.h
trace.c
trace.h
udc.c usb: chipidea: udc: check request status before setting device address 2022-06-29 09:03:27 +02:00
udc.h
ulpi.c
usbmisc_imx.c usb: chipidea: imx: improve logic if samsung,picophy-* parameter is 0 2023-09-06 21:28:38 +01:00