Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit cb8b441

Browse files
jareguerogregkh
authored andcommitted
usb: xhci: Fix problem with xhci resume from suspend
commit d44238d upstream. I have a ASUS PN51 S mini pc that has two xhci devices. One from AMD, and other from ASMEDIA. The one from ASMEDIA have problems when resume from suspend, and keep broken until unplug the power cord. I use this kernel parameter: xhci-hcd.quirks=128 and then it works ok. I make a path to reset only the ASMEDIA xhci. Signed-off-by: Jose Alberto Reguero <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 38aef06 commit cb8b441

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/usb/host/xhci-pci.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
#define PCI_DEVICE_ID_ASMEDIA_1042A_XHCI 0x1142
7474
#define PCI_DEVICE_ID_ASMEDIA_1142_XHCI 0x1242
7575
#define PCI_DEVICE_ID_ASMEDIA_2142_XHCI 0x2142
76+
#define PCI_DEVICE_ID_ASMEDIA_3042_XHCI 0x3042
7677
#define PCI_DEVICE_ID_ASMEDIA_3242_XHCI 0x3242
7778

7879
#define PCI_DEVICE_ID_CADENCE 0x17CD
@@ -516,6 +517,10 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
516517
pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI)
517518
xhci->quirks |= XHCI_ASMEDIA_MODIFY_FLOWCONTROL;
518519

520+
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
521+
pdev->device == PCI_DEVICE_ID_ASMEDIA_3042_XHCI)
522+
xhci->quirks |= XHCI_RESET_ON_RESUME;
523+
519524
if (pdev->vendor == PCI_VENDOR_ID_TI && pdev->device == 0x8241)
520525
xhci->quirks |= XHCI_LIMIT_ENDPOINT_INTERVAL_7;
521526

0 commit comments

Comments
 (0)