diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2020-04-02 22:26:38 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2020-04-02 22:26:38 +0300 |
commit | 10e8141baa7c5585c2d1ad98397186689ccf99b3 (patch) | |
tree | 043dfcc9edab6cebd69fc44c55a1a60a8d4be141 /drivers/pci/quirks.c | |
parent | 74f0862cc9836460282b54b8350c8947cc8220b6 (diff) | |
parent | bd641fd8303a371e789e924291086268256766b0 (diff) | |
download | linux-10e8141baa7c5585c2d1ad98397186689ccf99b3.tar.xz |
Merge branch 'pci/misc'
- Move _HPX type array from stack to static data (Colin Ian King)
- Avoid an ASMedia XHCI USB PME# defect; apparently it doesn't assert
PME# when USB3.0 devices are hotplugged in D0 (Kai-Heng Feng)
- Revert sysfs "rescan" file renames that broke an application (Kelsey
Skunberg)
* pci/misc:
PCI: sysfs: Revert "rescan" file renames
PCI: Avoid ASMedia XHCI USB PME# from D0 defect
PCI/ACPI: Move pcie_to_hpx3_type[] from stack to static data
Diffstat (limited to 'drivers/pci/quirks.c')
-rw-r--r-- | drivers/pci/quirks.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index b7347bc6a24d..3e0ca273f903 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -5527,3 +5527,14 @@ out_disable: DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_VENDOR_ID_NVIDIA, 0x13b1, PCI_CLASS_DISPLAY_VGA, 8, quirk_reset_lenovo_thinkpad_p50_nvgpu); + +/* + * Device [1b21:2142] + * When in D0, PME# doesn't get asserted when plugging USB 3.0 device. + */ +static void pci_fixup_no_d0_pme(struct pci_dev *dev) +{ + pci_info(dev, "PME# does not work under D0, disabling it\n"); + dev->pme_support &= ~(PCI_PM_CAP_PME_D0 >> PCI_PM_CAP_PME_SHIFT); +} +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ASMEDIA, 0x2142, pci_fixup_no_d0_pme); |