Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752464AbdLLQsN (ORCPT ); Tue, 12 Dec 2017 11:48:13 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:36265 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752048AbdLLQsG (ORCPT ); Tue, 12 Dec 2017 11:48:06 -0500 X-Google-Smtp-Source: ACJfBovn6xus2P8Ip9kwihkTOyXJIhv2MK+jOfVw41loos85w31UxErGf+TspiZKuvTsKwu+Kbw4sA== From: Daniel Thompson To: Mathias Nyman Cc: Daniel Thompson , linux-usb@vger.kernel.org, Greg Kroah-Hartman , Ard Biesheuvel , linux-kernel@vger.kernel.org, patches@linaro.org, stable@vger.kernel.org Subject: [PATCH] usb: xhci: Add XHCI_TRUST_TX_LENGTH for Renesas uPD720201 Date: Tue, 12 Dec 2017 16:47:38 +0000 Message-Id: <20171212164738.31463-1-daniel.thompson@linaro.org> X-Mailer: git-send-email 2.14.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1062 Lines: 30 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). Cc: Signed-off-by: Daniel Thompson --- drivers/usb/host/xhci-pci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 7ef1274ef7f7..1aad89b8aba0 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -177,6 +177,9 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) xhci->quirks |= XHCI_TRUST_TX_LENGTH; 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; -- 2.14.2