From: Liang Liang (Leo) Date: Sat, 20 Feb 2021 00:58:08 +0000 (+0800) Subject: usb/host: enable auto power control for xhci-pci X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8262c762c7412f83bc9ee1bf03bb64259b4d7dc7;p=users%2Fjedix%2Flinux-maple.git 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 --- 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;