PCI: Avoid ASMedia XHCI USB PME# from D0 defect
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Thu, 19 Dec 2019 19:20:06 +0000 (03:20 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 19 Mar 2020 21:47:47 +0000 (16:47 -0500)
commit2880325bda8d53566dcb9725abc929eec871608e
tree2a514e9d56de539abb9731be462743fe5d4344ce
parente3cdcfcea363edadebf94576c29d33a441fd5a6f
PCI: Avoid ASMedia XHCI USB PME# from D0 defect

The ASMedia USB XHCI Controller claims to support generating PME# while
in D0:

  01:00.0 USB controller: ASMedia Technology Inc. Device 2142 (prog-if 30 [XHCI])
    Subsystem: SUNIX Co., Ltd. Device 312b
    Capabilities: [78] Power Management version 3
      Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot-,D3cold-)
      Status: D0 NoSoftRst+ PME-Enable+ DSel=0 DScale=0 PME-

However PME# only gets asserted when plugging USB 2.0 or USB 1.1 devices,
but not for USB 3.0 devices.

Remove PCI_PM_CAP_PME_D0 to avoid using PME under D0.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=205919
Link: https://lore.kernel.org/r/20191219192006.16270-1-kai.heng.feng@canonical.com
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/quirks.c