Skip to content

Commit dbb0897

Browse files
cyrozapgregkh
authored andcommitted
usb: xhci: Fix ASM2142/ASM3142 DMA addressing
The ASM2142/ASM3142 (same PCI IDs) does not support full 64-bit DMA addresses, which can cause silent memory corruption or IOMMU errors on platforms that use the upper bits. Add the XHCI_NO_64BIT_SUPPORT quirk to fix this issue. 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 5ce1a24 commit dbb0897

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/usb/host/xhci-pci.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
265265
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
266266
pdev->device == 0x1142)
267267
xhci->quirks |= XHCI_TRUST_TX_LENGTH;
268+
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
269+
pdev->device == 0x2142)
270+
xhci->quirks |= XHCI_NO_64BIT_SUPPORT;
268271

269272
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
270273
pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI)

0 commit comments

Comments
 (0)