Skip to content

Commit 64f5b51

Browse files
andy-shevgregkh
authored andcommitted
xhci: pci: Use full names in PCI IDs for Intel platforms
There are three out of many Intel platforms that are using TLAs instead of the full names in the PCI IDs. Modify them accordingly. This also fixes the logic of grouping as seemed to be by an LSB byte of the ID. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 608b973 commit 64f5b51

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

drivers/usb/host/xhci-pci.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@
4545
#define PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_XHCI 0x9d2f
4646
#define PCI_DEVICE_ID_INTEL_BROXTON_M_XHCI 0x0aa8
4747
#define PCI_DEVICE_ID_INTEL_BROXTON_B_XHCI 0x1aa8
48-
#define PCI_DEVICE_ID_INTEL_APL_XHCI 0x5aa8
49-
#define PCI_DEVICE_ID_INTEL_DNV_XHCI 0x19d0
48+
#define PCI_DEVICE_ID_INTEL_APOLLO_LAKE_XHCI 0x5aa8
5049
#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_2C_XHCI 0x15b5
5150
#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_4C_XHCI 0x15b6
5251
#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_LP_XHCI 0x15c1
@@ -55,9 +54,10 @@
5554
#define PCI_DEVICE_ID_INTEL_TITAN_RIDGE_2C_XHCI 0x15e9
5655
#define PCI_DEVICE_ID_INTEL_TITAN_RIDGE_4C_XHCI 0x15ec
5756
#define PCI_DEVICE_ID_INTEL_TITAN_RIDGE_DD_XHCI 0x15f0
57+
#define PCI_DEVICE_ID_INTEL_DENVERTON_XHCI 0x19d0
5858
#define PCI_DEVICE_ID_INTEL_ICE_LAKE_XHCI 0x8a13
59-
#define PCI_DEVICE_ID_INTEL_CML_XHCI 0xa3af
6059
#define PCI_DEVICE_ID_INTEL_TIGER_LAKE_XHCI 0x9a13
60+
#define PCI_DEVICE_ID_INTEL_COMET_LAKE_XHCI 0xa3af
6161
#define PCI_DEVICE_ID_INTEL_MAPLE_RIDGE_XHCI 0x1138
6262
#define PCI_DEVICE_ID_INTEL_ALDER_LAKE_PCH_XHCI 0x51ed
6363
#define PCI_DEVICE_ID_INTEL_ALDER_LAKE_N_PCH_XHCI 0x54ed
@@ -348,9 +348,9 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
348348
pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI ||
349349
pdev->device == PCI_DEVICE_ID_INTEL_BROXTON_M_XHCI ||
350350
pdev->device == PCI_DEVICE_ID_INTEL_BROXTON_B_XHCI ||
351-
pdev->device == PCI_DEVICE_ID_INTEL_APL_XHCI ||
352-
pdev->device == PCI_DEVICE_ID_INTEL_DNV_XHCI ||
353-
pdev->device == PCI_DEVICE_ID_INTEL_CML_XHCI)) {
351+
pdev->device == PCI_DEVICE_ID_INTEL_APOLLO_LAKE_XHCI ||
352+
pdev->device == PCI_DEVICE_ID_INTEL_DENVERTON_XHCI ||
353+
pdev->device == PCI_DEVICE_ID_INTEL_COMET_LAKE_XHCI)) {
354354
xhci->quirks |= XHCI_PME_STUCK_QUIRK;
355355
}
356356
if (pdev->vendor == PCI_VENDOR_ID_INTEL &&
@@ -359,14 +359,14 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
359359
if (pdev->vendor == PCI_VENDOR_ID_INTEL &&
360360
(pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI ||
361361
pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_XHCI ||
362-
pdev->device == PCI_DEVICE_ID_INTEL_APL_XHCI))
362+
pdev->device == PCI_DEVICE_ID_INTEL_APOLLO_LAKE_XHCI))
363363
xhci->quirks |= XHCI_INTEL_USB_ROLE_SW;
364364
if (pdev->vendor == PCI_VENDOR_ID_INTEL &&
365365
(pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI ||
366366
pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_XHCI ||
367367
pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_XHCI ||
368-
pdev->device == PCI_DEVICE_ID_INTEL_APL_XHCI ||
369-
pdev->device == PCI_DEVICE_ID_INTEL_DNV_XHCI))
368+
pdev->device == PCI_DEVICE_ID_INTEL_APOLLO_LAKE_XHCI ||
369+
pdev->device == PCI_DEVICE_ID_INTEL_DENVERTON_XHCI))
370370
xhci->quirks |= XHCI_MISSING_CAS;
371371

372372
if (pdev->vendor == PCI_VENDOR_ID_INTEL &&

0 commit comments

Comments
 (0)