sst-linux/drivers/usb
Mathias Nyman 85ec2ee3bc xhci: always resume roothubs if xHC was reset during resume
commit 79989bd4ab86404743953fa382af0a22900050cf upstream.

Usb device connect may not be detected after runtime resume if
xHC is reset during resume.

In runtime resume cases xhci_resume() will only resume roothubs if there
are pending port events. If the xHC host is reset during runtime resume
due to a Save/Restore Error (SRE) then these pending port events won't be
detected as PORTSC change bits are not immediately set by host after reset.

Unconditionally resume roothubs if xHC is reset during resume to ensure
device connections are detected.

Also return early with error code if starting xHC fails after reset.

Issue was debugged and a similar solution suggested by Remi Pommarel.
Using this instead as it simplifies future refactoring.

Reported-by: Remi Pommarel <repk@triplefau.lt>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218987
Suggested-by: Remi Pommarel <repk@triplefau.lt>
Tested-by: Remi Pommarel <repk@triplefau.lt>
Cc: stable@vger.kernel.org
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20240627145523.1453155-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-07-18 13:18:39 +02:00
..
atm usb: atm: cxacru: fix endpoint checking in cxacru_bind() 2024-07-05 09:31:55 +02:00
c67x00
cdns3
chipidea
class USB: class: cdc-wdm: Fix CPU lockup caused by excessive log messages 2024-06-21 14:35:42 +02:00
common
core USB: core: Fix duplicate endpoint bug by clearing reserved bits in the descriptor 2024-07-18 13:18:39 +02:00
dwc2 usb: dwc2: host: Fix dereference issue in DDMA completion flow. 2024-04-27 17:07:15 +02:00
dwc3 usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock 2024-07-05 09:31:55 +02:00
early
gadget usb: gadget: configfs: Prevent OOB read/write in usb_string_copy() 2024-07-18 13:18:39 +02:00
host xhci: always resume roothubs if xHC was reset during resume 2024-07-18 13:18:39 +02:00
image
isp1760
misc usb: misc: uss720: check for incompatible versions of the Belkin F5U002 2024-06-27 13:46:17 +02:00
mon
mtu3
musb usb: musb: da8xx: fix a resource leak in probe() 2024-07-05 09:31:55 +02:00
phy Revert "usb: phy: generic: Get the vbus supply" 2024-04-03 15:19:50 +02:00
renesas_usbhs
roles
serial USB: serial: mos7840: fix crash on resume 2024-07-18 13:18:39 +02:00
storage usb-storage: alauda: Check whether the media is initialized 2024-06-21 14:36:00 +02:00
typec usb: ucsi: stm32: fix command completion handling 2024-07-05 09:31:55 +02:00
usbip
Kconfig
Makefile USB: xen-hcd: Traverse host/ when CONFIG_USB_XEN_HCD is selected 2024-06-21 14:35:43 +02:00
usb-skeleton.c