kernel_samsung_a53x/drivers/usb/chipidea
Xu Yang d91457917b 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: 1f874edcb731 ("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-11-18 12:12:46 +01:00
..
bits.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ci.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ci_hdrc_imx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ci_hdrc_imx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ci_hdrc_msm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ci_hdrc_pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ci_hdrc_tegra.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ci_hdrc_usb2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c usb: chipidea: wait controller resume finished for wakeup irq 2024-11-18 12:12:46 +01:00
debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
host.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
host.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
otg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
otg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
otg_fsm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
otg_fsm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ulpi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usbmisc_imx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00