]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
usb/host: enable auto power control for xhci-pci
authorLiang Liang (Leo) <liang.liang@amd.com>
Sat, 20 Feb 2021 00:58:08 +0000 (08:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Apr 2021 03:36:06 +0000 (23:36 -0400)
[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

index 5bbccc9a0179fff56b1799d35935db1f332adf08..9ab9f681bfbac492a7800d1f5b5d6b76183f0c3b 100644 (file)
@@ -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;