From 8262c762c7412f83bc9ee1bf03bb64259b4d7dc7 Mon Sep 17 00:00:00 2001 From: "Liang Liang (Leo)" Date: Sat, 20 Feb 2021 08:58:08 +0800 Subject: [PATCH] usb/host: enable auto power control for xhci-pci [why] USB control should enter D3 state with no device connected [How] Enable runtime power management for XHCI-PCI USB host controller Jira-ID: MR-1739/AER-588 Signed-off-by: Liang Liang (Leo) Signed-off-by: Ziyang Wu Signed-off-by: Alex Deucher --- drivers/usb/host/xhci-pci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 5bbccc9a0179f..9ab9f681bfbac 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -162,6 +162,9 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) pdev->device == 0x43bb)) xhci->quirks |= XHCI_SUSPEND_DELAY; + if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x163b) + xhci->quirks |= XHCI_DEFAULT_PM_RUNTIME_ALLOW; + if (pdev->vendor == PCI_VENDOR_ID_AMD && (pdev->device == 0x15e0 || pdev->device == 0x15e1)) xhci->quirks |= XHCI_SNPS_BROKEN_SUSPEND; -- 2.51.0