Skip to content

Commit 3c12878

Browse files
Sandeep Singhgregkh
authored andcommitted
xhci: Add reset resume quirk for AMD xhci controller.
One of AMD xhci controller require reset on resume. Occasionally AMD xhci controller does not respond to Stop endpoint command. Once the issue happens controller goes into bad state and in that case controller needs to be reset. Cc: <[email protected]> Signed-off-by: Sandeep Singh <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ca09b1b commit 3c12878

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/usb/host/xhci-pci.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,10 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
167167
(pdev->device == 0x15e0 || pdev->device == 0x15e1))
168168
xhci->quirks |= XHCI_SNPS_BROKEN_SUSPEND;
169169

170-
if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x15e5)
170+
if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x15e5) {
171171
xhci->quirks |= XHCI_DISABLE_SPARSE;
172+
xhci->quirks |= XHCI_RESET_ON_RESUME;
173+
}
172174

173175
if (pdev->vendor == PCI_VENDOR_ID_AMD)
174176
xhci->quirks |= XHCI_TRUST_TX_LENGTH;

0 commit comments

Comments
 (0)