From patchwork Thu Dec 21 13:06:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathias Nyman X-Patchwork-Id: 122561 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp856291qgn; Thu, 21 Dec 2017 05:03:49 -0800 (PST) X-Google-Smtp-Source: ACJfBovWcMLJ3fvqxo9VtUbSpxCD0VQ0iG5iV1gA2MVO90+Kf7OT0o7H4UC5T273fdP0joJADJw9 X-Received: by 10.84.234.9 with SMTP id m9mr10671415plk.436.1513861429007; Thu, 21 Dec 2017 05:03:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513861429; cv=none; d=google.com; s=arc-20160816; b=eQK9i5BiD3GXZXIpkCOqxf20Ov2F4UwKbA83BMhQ0nPAU5UbtRLa0vGVL2BwlR1F03 wY8zZAxzrYaq8o7MXlqHENDimJRo3WAU/KGvRYljYf2KxUrBw+vAJdxT8ETJciS10Kh2 1X3z7q7rc0r/30usy9a0hC9eJmMlwUjxB6GIeYHh0f44WEP3bdVOvkdNwINCCu2ngPjD 8WKhTlj04PPvW6gEZoFELLs4sZytzyUPSu0r2ziL6dxswMnWLFs/CbOd336Kex1qmmH1 20Pq8sYov8Kzev7rMr2AInzW+4584Qgom+HN+WefZW33iHfgaaY17B9rXvf31hQfh5he k1pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=r39L6AfbQ+S7umEodEc7+Ub96ZEsGgc/tlD4A8CT6BM=; b=s/6m+O2OjtEZqOErFKumsYac0WK4wQQtpz8VKNnJe+5J8vVwxd+CheJZmuhEAI/IzQ rZ0FVCXRwIDer0tHo+vQfvGrhTovskSFmNM8D+/uYHtUutuNL8iOF96ZFEXnKwSJ0oOS KB9T1azsEV68DyFeWc79XynSz1qS52Aj4J2vhZOqpsMFv5P6bf+0U33O1k9FMo+MB1pP w9cayTZI6xYjtHKXOIRvfr/Whr2h8l2h4p6xStjTEe23G+aHEgpnakr3YdZ1R1uLw4jg uoCGyn6vi4/QSF4J2V6j+1x1AdjnHTz+R3ZKKsG7T6VQLl6iesABF4U2ly8RBoP8Yw88 Lrhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si13532699pgf.534.2017.12.21.05.03.48; Thu, 21 Dec 2017 05:03:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753997AbdLUNDr (ORCPT + 10 others); Thu, 21 Dec 2017 08:03:47 -0500 Received: from mga07.intel.com ([134.134.136.100]:25280 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753918AbdLUNDq (ORCPT ); Thu, 21 Dec 2017 08:03:46 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Dec 2017 05:03:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,435,1508828400"; d="scan'208";a="20136072" Received: from mattu-haswell.fi.intel.com ([10.237.72.164]) by orsmga002.jf.intel.com with ESMTP; 21 Dec 2017 05:03:44 -0800 From: Mathias Nyman To: Cc: linux-usb@vger.kernel.org, Daniel Thompson , stable@vger.kernel.org, Mathias Nyman Subject: [PATCH 3/3] usb: xhci: Add XHCI_TRUST_TX_LENGTH for Renesas uPD720201 Date: Thu, 21 Dec 2017 15:06:15 +0200 Message-Id: <1513861575-6882-4-git-send-email-mathias.nyman@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513861575-6882-1-git-send-email-mathias.nyman@linux.intel.com> References: <1513861575-6882-1-git-send-email-mathias.nyman@linux.intel.com> Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Daniel Thompson 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 --- drivers/usb/host/xhci-pci.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4 diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 7ef1274..1aad89b 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -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)