RE: [PATCH] usb: pci-quirks: add XHCI_COMP_MODE_QUIRK for disabling amd xhci D3cold
From: Liang, Prike <hidden>
Date: 2021-01-26 12:32:25
[AMD Public Use] Ping ... please help review. Thanks, Prike
quoted hunk ↗ jump to hunk
-----Original Message----- From: Liang, Prike <redacted> Sent: Tuesday, January 19, 2021 9:49 AM To: linux-usb@vger.kernel.org Cc: mathias.nyman@intel.com; Liang, Prike <redacted> Subject: [PATCH] usb: pci-quirks: add XHCI_COMP_MODE_QUIRK for disabling amd xhci D3cold During xhci suspend some AMD USB host will lose port status change events and need to have the registers polled during D3, so now just avoid D3cold. Signed-off-by: Prike Liang <redacted> --- drivers/usb/host/xhci-pci.c | 5 +++++ 1 file changed, 5 insertions(+)diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index3feaafe..bff817a 100644--- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c@@ -170,6 +170,11 @@ static void xhci_pci_quirks(struct device *dev, structxhci_hcd *xhci) (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_1))) xhci->quirks |= XHCI_U2_DISABLE_WAKE; +if (pdev->vendor == PCI_VENDOR_ID_AMD && +pdev->device == 0x1639) { +xhci->quirks |= XHCI_COMP_MODE_QUIRK; +} + if (pdev->vendor == PCI_VENDOR_ID_INTEL) { xhci->quirks |= XHCI_LPM_SUPPORT; xhci->quirks |= XHCI_INTEL_HOST; -- 2.7.4