Skip to contentSkip to conversation

usb: xhci: Add XHCI_TRUST_TX_LENGTH for Renesas uPD720201

PATCH New Mathias Nyman 1 participant 1 message Dec 21, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 usb: xhci: Add XHCI_TRUST_TX_LENGTH for Renesas uPD720201

From: Daniel Thompson <[email protected]>

When plugging in a USB webcam I see the following message:
xhci_hcd 0000:04:00.0: WARN Successful completion on short TX: needs XHCI_TRUST_TX_LENGTH quirk?
handle_tx_event: 913 callbacks suppressed

All is quiet again with this patch (and I've done a fair but of soak testing with the camera since).

---
 drivers/usb/host/xhci-pci.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/usb/host/xhci-pci.c +3 -0
index 7ef1274..1aad89b 100644
@@ -178,6 +178,9 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
 		xhci->quirks |= XHCI_BROKEN_STREAMS;
 	}
 	if (pdev->vendor == PCI_VENDOR_ID_RENESAS &&
+			pdev->device == 0x0014)
+		xhci->quirks |= XHCI_TRUST_TX_LENGTH;
+	if (pdev->vendor == PCI_VENDOR_ID_RENESAS &&
 			pdev->device == 0x0015)
 		xhci->quirks |= XHCI_RESET_ON_RESUME;
 	if (pdev->vendor == PCI_VENDOR_ID_VIA)
Signature · 1 line
2.7.4