linux-yocto/drivers/usb
Kuen-Han Tsai 609a617a97 usb: dwc3: Abort suspend on soft disconnect failure
[ Upstream commit 630a1dec3b ]

When dwc3_gadget_soft_disconnect() fails, dwc3_suspend_common() keeps
going with the suspend, resulting in a period where the power domain is
off, but the gadget driver remains connected.  Within this time frame,
invoking vbus_event_work() will cause an error as it attempts to access
DWC3 registers for endpoint disabling after the power domain has been
completely shut down.

Abort the suspend sequence when dwc3_gadget_suspend() cannot halt the
controller and proceeds with a soft connect.

Fixes: 9f8a67b65a ("usb: dwc3: gadget: fix gadget suspend/resume")
Cc: stable <stable@kernel.org>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
Link: https://lore.kernel.org/r/20250528100315.2162699-1-khtsai@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-17 18:35:17 +02:00
..
atm usb: atm: cxacru: fix a flaw in existing endpoint checks 2025-03-13 12:58:34 +01:00
c67x00
cdns3 usb: cdnsp: Fix issue with CV Bad Descriptor test 2025-07-17 18:35:17 +02:00
chipidea usb: chipidea: udc: disconnect/reconnect from host when do suspend/resume 2025-07-10 16:03:19 +02:00
class usb: cdc-wdm: avoid setting WDM_READ for ZLP-s 2025-07-06 11:00:08 +02:00
common usb: common: usb-conn-gpio: use a unique name for usb connector device 2025-07-06 11:00:08 +02:00
core Logitech C-270 even more broken 2025-07-10 16:03:20 +02:00
dwc2 usb: dwc2: also exit clock_gating when stopping udc while suspended 2025-07-06 11:00:07 +02:00
dwc3 usb: dwc3: Abort suspend on soft disconnect failure 2025-07-17 18:35:17 +02:00
early
fotg210
gadget Revert "usb: gadget: u_serial: Add null pointer check in gs_start_io" 2025-07-17 18:35:14 +02:00
host xhci: Disable stream for xHC controller with XHCI_BROKEN_STREAMS 2025-07-10 16:03:18 +02:00
image
isp1760
misc of: remove internal arguments from of_property_for_each_u32() 2025-02-08 09:51:51 +01:00
mon
mtu3
musb
phy usb: phy: generic: Use proper helper for property detection 2025-03-22 12:50:41 -07:00
renesas_usbhs usb: renesas_usbhs: Reorder clock handling and power management in probe 2025-06-19 15:28:30 +02:00
roles usb: roles: set switch registered flag early on 2025-02-21 13:57:14 +01:00
serial USB: serial: pl2303: add new chip PL2303GC-Q20 and PL2303GT-2AB 2025-06-19 15:28:00 +02:00
storage usb: storage: Ignore UAS driver for SanDisk 3.2 Gen2 storage device 2025-06-19 15:28:00 +02:00
typec usb: typec: displayport: Fix potential deadlock 2025-07-10 16:03:20 +02:00
usbip
Kconfig
Makefile
usb-skeleton.c