Skip to content

Commit ec37198

Browse files
cyrozapgregkh
authored andcommitted
usb: xhci: Fix ASMedia ASM1142 DMA addressing
I've confirmed that the ASMedia ASM1142 has the same problem as the ASM2142/ASM3142, in that it too reports that it supports 64-bit DMA addresses when in fact it does not. As with the ASM2142/ASM3142, this can cause problems on systems where the upper bits matter, and adding the XHCI_NO_64BIT_SUPPORT quirk completely fixes the issue. Acked-by: Mathias Nyman <[email protected]> Signed-off-by: Forest Crossman <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1841cb2 commit ec37198

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/usb/host/xhci-pci.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
#define PCI_DEVICE_ID_AMD_PROMONTORYA_1 0x43bc
6060
#define PCI_DEVICE_ID_ASMEDIA_1042_XHCI 0x1042
6161
#define PCI_DEVICE_ID_ASMEDIA_1042A_XHCI 0x1142
62+
#define PCI_DEVICE_ID_ASMEDIA_1142_XHCI 0x1242
6263
#define PCI_DEVICE_ID_ASMEDIA_2142_XHCI 0x2142
6364

6465
static const char hcd_name[] = "xhci_hcd";
@@ -268,7 +269,8 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
268269
pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI)
269270
xhci->quirks |= XHCI_TRUST_TX_LENGTH;
270271
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
271-
pdev->device == PCI_DEVICE_ID_ASMEDIA_2142_XHCI)
272+
(pdev->device == PCI_DEVICE_ID_ASMEDIA_1142_XHCI ||
273+
pdev->device == PCI_DEVICE_ID_ASMEDIA_2142_XHCI))
272274
xhci->quirks |= XHCI_NO_64BIT_SUPPORT;
273275

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

0 commit comments

Comments
 (0)