Skip to content

Commit 4f54747

Browse files
jglathegregkh
authored andcommitted
usb: xhci: add XHCI_SPURIOUS_SUCCESS to ASM1042 despite being a V0.96 controller
This appears to fix the error: "xhci_hcd <address>; ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 13" that appear spuriously (or pretty often) when using a r8152 USB3 ethernet adapter with integrated hub. ASM1042 reports as a 0.96 controller, but appears to behave more like 1.0 Inspired by this email thread: https://markmail.org/thread/7vzqbe7t6du6qsw3 Cc: stable@vger.kernel.org Signed-off-by: Jens Glathe <jens.glathe@oldschoolsolutions.biz> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20221024142720.4122053-2-mathias.nyman@intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3f53c32 commit 4f54747

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/usb/host/xhci-pci.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,14 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
306306
}
307307

308308
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
309-
pdev->device == PCI_DEVICE_ID_ASMEDIA_1042_XHCI)
309+
pdev->device == PCI_DEVICE_ID_ASMEDIA_1042_XHCI) {
310+
/*
311+
* try to tame the ASMedia 1042 controller which reports 0.96
312+
* but appears to behave more like 1.0
313+
*/
314+
xhci->quirks |= XHCI_SPURIOUS_SUCCESS;
310315
xhci->quirks |= XHCI_BROKEN_STREAMS;
316+
}
311317
if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
312318
pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI) {
313319
xhci->quirks |= XHCI_TRUST_TX_LENGTH;

0 commit comments

Comments
 (0)