From 64f90e446d7929e4099b30d7bf74dbe57a75c216 Mon Sep 17 00:00:00 2001 From: "Liang Liang (Leo)" <liang.liang@amd.com> 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) <liang.liang@amd.com> Signed-off-by: Ziyang Wu <ziyang.wu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> --- 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 84da8406d5b42..0ac34cbbb6aa1 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -161,6 +161,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; -- GitLab