diff options
author | Basavaraj Natikar <[email protected]> | 2024-03-04 11:13:27 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-03-05 13:53:30 +0000 |
commit | 28cbed496059fe1868203b76e9e0ef285733524d (patch) | |
tree | bbb8d015a39662ee8904832a01810c7111110467 | |
parent | e9b4197e23da2c1d1deb9fea54bf5419da53318c (diff) |
xhci: Allow RPM on the USB controller (1022:43f7) by default
Enable runtime PM by default for older AMD 1022:43f7 xHCI 1.1 host as it
is proven to work.
Driver enables runtime PM by default for newer xHCI 1.2 host.
Link: https://lore.kernel.org/all/[email protected]/
Cc: Mario Limonciello <[email protected]>
Tested-by: Oleksandr Natalenko <[email protected]>
Signed-off-by: Basavaraj Natikar <[email protected]>
Acked-by: Mathias Nyman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/usb/host/xhci-pci.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 1843f3d5b1e6..93b697648018 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -307,8 +307,11 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) xhci->quirks |= XHCI_RESET_ON_RESUME; } - if (pdev->vendor == PCI_VENDOR_ID_AMD) + if (pdev->vendor == PCI_VENDOR_ID_AMD) { xhci->quirks |= XHCI_TRUST_TX_LENGTH; + if (pdev->device == 0x43f7) + xhci->quirks |= XHCI_DEFAULT_PM_RUNTIME_ALLOW; + } if ((pdev->vendor == PCI_VENDOR_ID_AMD) && ((pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_4) || |