Skip to content

Commit 1841cb2

Browse files
cyrozapgregkh
authored andcommitted
usb: xhci: define IDs for various ASMedia host controllers
Not all ASMedia host controllers have a device ID that matches its part number. #define some of these IDs to make it clearer at a glance which chips require what quirks. Acked-by: Mathias Nyman <[email protected]> Signed-off-by: Forest Crossman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2d30e40 commit 1841cb2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

drivers/usb/host/xhci-pci.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@
5757
#define PCI_DEVICE_ID_AMD_PROMONTORYA_3 0x43ba
5858
#define PCI_DEVICE_ID_AMD_PROMONTORYA_2 0x43bb
5959
#define PCI_DEVICE_ID_AMD_PROMONTORYA_1 0x43bc
60+
#define PCI_DEVICE_ID_ASMEDIA_1042_XHCI 0x1042
6061
#define PCI_DEVICE_ID_ASMEDIA_1042A_XHCI 0x1142
62+
#define PCI_DEVICE_ID_ASMEDIA_2142_XHCI 0x2142
6163

6264
static const char hcd_name[] = "xhci_hcd";
6365

@@ -260,13 +262,13 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
260262
xhci->quirks |= XHCI_LPM_SUPPORT;
261263

262264
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
263-
pdev->device == 0x1042)
265+
pdev->device == PCI_DEVICE_ID_ASMEDIA_1042_XHCI)
264266
xhci->quirks |= XHCI_BROKEN_STREAMS;
265267
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
266-
pdev->device == 0x1142)
268+
pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI)
267269
xhci->quirks |= XHCI_TRUST_TX_LENGTH;
268270
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
269-
pdev->device == 0x2142)
271+
pdev->device == PCI_DEVICE_ID_ASMEDIA_2142_XHCI)
270272
xhci->quirks |= XHCI_NO_64BIT_SUPPORT;
271273

272274
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&

0 commit comments

Comments
 (0)