]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
usb: xhci: Enable LPM for VIA LABS VL805
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Thu, 12 Mar 2020 14:45:12 +0000 (16:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 16:34:48 +0000 (17:34 +0100)
This PCIe controller chip is used on the Raspberry Pi 4 and multiple
adapter cards. There is no publicly available documentation for the
chip, yet both the downstream RPi4 kernel and the controller cards
support/advertise LPM support.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20200312144517.1593-5-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-pci.c

index 0715a2e75413e1c90556d14a0f8e3948bf2ac566..b98a1b54db56eab252671fb0064d350c73a7eba6 100644 (file)
@@ -243,6 +243,9 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
                        pdev->device == 0x3432)
                xhci->quirks |= XHCI_BROKEN_STREAMS;
 
+       if (pdev->vendor == PCI_VENDOR_ID_VIA && pdev->device == 0x3483)
+               xhci->quirks |= XHCI_LPM_SUPPORT;
+
        if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
                        pdev->device == 0x1042)
                xhci->quirks |= XHCI_BROKEN_STREAMS;