Skip to content

Commit 70db3c5

Browse files
cyrozapgregkh
authored andcommitted
usb: xhci: Fix ASM2142/ASM3142 DMA addressing
commit dbb0897e805f2ab1b8bc358f6c3d878a376b8897 upstream. 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 <cyrozap@gmail.com> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20200717112734.328432-1-cyrozap@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ec9b262 commit 70db3c5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/usb/host/xhci-pci.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
235235
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
236236
pdev->device == 0x1142)
237237
xhci->quirks |= XHCI_TRUST_TX_LENGTH;
238+
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
239+
pdev->device == 0x2142)
240+
xhci->quirks |= XHCI_NO_64BIT_SUPPORT;
238241

239242
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
240243
pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI)

0 commit comments

Comments
 (0)