Skip to content

Commit 118ecef

Browse files
Avenger-285714gregkh
authored andcommitted
usb: xHCI: add XHCI_RESET_ON_RESUME quirk for Phytium xHCI host
The resume operation of Phytium Px210 xHCI host would failed to restore state. Use the XHCI_RESET_ON_RESUME quirk to skip it and reset the controller after resume. Co-developed-by: Chen Baozi <[email protected]> Signed-off-by: Chen Baozi <[email protected]> Co-developed-by: Wang Zhimin <[email protected]> Signed-off-by: Wang Zhimin <[email protected]> Co-developed-by: Chen Zhenhua <[email protected]> Signed-off-by: Chen Zhenhua <[email protected]> Co-developed-by: Wang Yinfeng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Co-developed-by: Jiakun Shuai <[email protected]> Signed-off-by: Jiakun Shuai <[email protected]> Signed-off-by: WangYuli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4664b73 commit 118ecef

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/usb/host/xhci-pci.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
#define PCI_DEVICE_ID_INTEL_ALDER_LAKE_PCH_XHCI 0x51ed
5656
#define PCI_DEVICE_ID_INTEL_ALDER_LAKE_N_PCH_XHCI 0x54ed
5757

58+
#define PCI_VENDOR_ID_PHYTIUM 0x1db7
59+
#define PCI_DEVICE_ID_PHYTIUM_XHCI 0xdc27
60+
5861
/* Thunderbolt */
5962
#define PCI_DEVICE_ID_INTEL_MAPLE_RIDGE_XHCI 0x1138
6063
#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_2C_XHCI 0x15b5
@@ -410,6 +413,10 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
410413
if (pdev->vendor == PCI_VENDOR_ID_VIA)
411414
xhci->quirks |= XHCI_RESET_ON_RESUME;
412415

416+
if (pdev->vendor == PCI_VENDOR_ID_PHYTIUM &&
417+
pdev->device == PCI_DEVICE_ID_PHYTIUM_XHCI)
418+
xhci->quirks |= XHCI_RESET_ON_RESUME;
419+
413420
/* See https://bugzilla.kernel.org/show_bug.cgi?id=79511 */
414421
if (pdev->vendor == PCI_VENDOR_ID_VIA &&
415422
pdev->device == 0x3432)

0 commit comments

Comments
 (0)