From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-bn3nam01on0109.outbound.protection.outlook.com ([104.47.33.109]:37104 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1031989AbeCAP2A (ORCPT ); Thu, 1 Mar 2018 10:28:00 -0500 From: Sasha Levin To: "stable@vger.kernel.org" , "stable-commits@vger.kernel.org" CC: Daniel Thompson , Mathias Nyman , Greg Kroah-Hartman , Sasha Levin Subject: [added to the 4.1 stable tree] usb: xhci: Add XHCI_TRUST_TX_LENGTH for Renesas uPD720201 Date: Thu, 1 Mar 2018 15:23:31 +0000 Message-ID: <20180301152116.1486-101-alexander.levin@microsoft.com> References: <20180301152116.1486-1-alexander.levin@microsoft.com> In-Reply-To: <20180301152116.1486-1-alexander.levin@microsoft.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: From: Daniel Thompson This patch has been added to the 4.1 stable tree. If you have any objections, please let us know. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [ Upstream commit da99706689481717998d1d48edd389f339eea979 ] 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 Acked-by: Ard Biesheuvel Signed-off-by: Mathias Nyman Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- 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 e91cbf360afe..8a82e14829e9 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -181,6 +181,9 @@ static void xhci_pci_quirks(struct device *dev, struct = xhci_hcd *xhci) xhci->quirks |=3D XHCI_TRUST_TX_LENGTH; xhci->quirks |=3D XHCI_BROKEN_STREAMS; } + if (pdev->vendor =3D=3D PCI_VENDOR_ID_RENESAS && + pdev->device =3D=3D 0x0014) + xhci->quirks |=3D XHCI_TRUST_TX_LENGTH; if (pdev->vendor =3D=3D PCI_VENDOR_ID_RENESAS && pdev->device =3D=3D 0x0015) xhci->quirks |=3D XHCI_RESET_ON_RESUME; --=20 2.14.1