From patchwork Thu Mar 1 15:23:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 130247 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp2938842edc; Thu, 1 Mar 2018 07:28:21 -0800 (PST) X-Google-Smtp-Source: AG47ELug6BSvIW0Qeu7UVBMZNIGXHjKjQtJ1RF/VXGGMXYQORR5RMfbjsEStIbVK0MX/8vrzam6G X-Received: by 2002:a17:902:6589:: with SMTP id c9-v6mr2240368plk.51.1519918101806; Thu, 01 Mar 2018 07:28:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519918101; cv=none; d=google.com; s=arc-20160816; b=oWqAJ0otiIn4X+HvQ8c7o5IeusvMNj0EDbWxccdCY6QMmuP9oB0b7nyT6LS2/KsaLv d/nZxRmM7KHq7CGB71BQEN7D8XXHaFhF6xrf1dC3yl9BvN9OK6siCuZSIuJtr8i4zTT9 sIVJ6chM1LzgST1QUIIxDjCjz/jV+mnZ8uK1m4sWGp81G94P99Yv5s1KwU+K+EGYvBz3 0VhP7at1/mzu9qR5RXAJ+feTiCbKIeZnK9mtQo7DCGgbOXWeDVoXClpoMrOqMjqtZusW 1zUfjFMfSnzZL7FHS/i8dC6aFVlxw7/nr60A9ZCqFWjRza8VhTKWQWe+PMXeahIlDLnf h+IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=ISaIn8B1lEoZPiqWN+3ZfjNDjyujO1uiQmuvQwV1b4w=; b=YP+IAeSggDwLdtEX0AQeTxCN72WZqyxCCgPVgZyeVssbwORJ5UR474cS1Q/u645xk6 nEGLCH9Ei/fobkf6tKLWiawgWFH+ppq8jA7DvmU7B0mrPtLKMdcSl9Bzf1JUp7xepysZ 9S9gOMNs0WyK8YD530UuvW1Xn9C2YSH1B+MUJ4H7XdqtzAm1F+4DBItTI6DNY+Lq6ltq nIEm+tlLx7RxOZ7hnktNZs7zutIwd+x7bUQ6LsA3vlCC2akUj31r3C59XQTJT7B9keLC BuYKNeyWma+uA9UBXmGcusT/9PCNXdJBfJT1hzS0eBJkREZgwIGG3EPt8ODloQPU0OpA 8CiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=guiZTfRV; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si2598359pgn.191.2018.03.01.07.28.21; Thu, 01 Mar 2018 07:28:21 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=guiZTfRV; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032083AbeCAP2T (ORCPT + 10 others); Thu, 1 Mar 2018 10:28:19 -0500 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ISaIn8B1lEoZPiqWN+3ZfjNDjyujO1uiQmuvQwV1b4w=; b=guiZTfRVo55NnM/CFocPMBmug2VsypHW3tYjtH6NUq2IRSoBEyDPOlbC69Ym6xTEKcL03qSh2GZvf+vDkeIxBiOcBgujkSVLvI/VqV703ovhVtcxXzCkIT91CgOfJI8thGP7HpS1403B7ngARMWKXpQ3sEVtZYLO8HWZLD79ZHQ= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1000.namprd21.prod.outlook.com (52.132.133.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.3; Thu, 1 Mar 2018 15:27:55 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8063:c68a:b210:7446]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8063:c68a:b210:7446%2]) with mapi id 15.20.0567.006; Thu, 1 Mar 2018 15:27:55 +0000 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 Thread-Topic: [added to the 4.1 stable tree] usb: xhci: Add XHCI_TRUST_TX_LENGTH for Renesas uPD720201 Thread-Index: AQHTsXFBND1ktpBZwUq3Zowz+22f3g== 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> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DM5PR2101MB1000; 6:RGO4Z/CCpIwXqOigQNv3on0xXprQmujaT9aR9SfrBzq8y26mo7Y268Zl2RQGaHPdVVutpKGv6G/Lzl34GDr7hcQw9J8NxaOH7yExRzGfsZPTjezHTJY9TRMnZN/iycW62g4MIW2APiuXcCeYVxjzCrADOeYIsPk+SIWKd+MZnWsbRfPBFo7rIOaqHNIsJBfuDZm9kqzgxZ8LUyRTLuHj1yC1MzH85kSna390/rh+q07rKDLL1J9zev0kYnZXKU8t9aTT2T591fN4lp/vEYO++8/17SirrGecECNw2hPXNLAARUhyPEfOhvLQgYIYJSgTQypLxHKR6AMUGqckHbvE1jhW7Q93sJKwPHPzcqGMYbB6fV6wTyY1cZs3YjzN2XxG; 5:uZ4Gr7+T9zNHj7w+c0HMa9YnHMTtD735SPvNk/IzdWVzRuTs3ioT+hXzhQLHP+UjrB6mU2wF3HKAEc1wHiJnYIG3FpmvMhJqnD6zb4wempqAdZnIBi2ltCL//TO4mCy1PrJwzVlyCMVK0xqp5QCp+6A/IoRIARmOzZ+jQNHMwL0=; 24:1vDTE3zTvvAYSTowiIJOYgLuTl1Dp0StRRdvK4RLCDgmZGtG3IDSiHJyMGkrrQeiHSVQaT9zOxNCNBTLwfQxgnG0FRqgwkqidW5XHoGTxl4=; 7:7dEy1d0wByvY8k1rYmQRqSSxXFKUGMBgIxD9h72gdZPRUatSeLzvqo7YslEnXzLbUi3bTdBucCKVKuUIVJmL1gWqjt87dd7xRkwfdBCCcIXImPCG7aXNSpRDavKhwDXMMQsvSgswfiTiepZyje1VsOUhNnei6xw1ev66MZ7aH1hInXqaF4jn1KXSHTjFOZICoWGYfs0OAHLIw8po1uSBbwwI3rM/PsqhvNAWN9KxFjB1WkCA0XV/TiuiKHRMNKD/ x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: d6e25229-dbfd-4ff8-d055-08d57f8901a3 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7193020); SRVR:DM5PR2101MB1000; x-ms-traffictypediagnostic: DM5PR2101MB1000: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(9452136761055)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(61425038)(6040501)(2401047)(8121501046)(5005006)(3002001)(3231220)(944501226)(52105095)(10201501046)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(6072148)(201708071742011); SRVR:DM5PR2101MB1000; BCL:0; PCL:0; RULEID:; SRVR:DM5PR2101MB1000; x-forefront-prvs: 05986C03E0 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(979002)(346002)(396003)(39380400002)(39860400002)(366004)(376002)(189003)(199004)(76176011)(68736007)(10290500003)(107886003)(5250100002)(105586002)(2501003)(305945005)(5660300001)(26005)(186003)(102836004)(3280700002)(8936002)(81166006)(81156014)(6346003)(8676002)(6116002)(110136005)(3846002)(1076002)(106356001)(53936002)(7736002)(99286004)(10090500001)(316002)(54906003)(6512007)(6486002)(2900100001)(86612001)(97736004)(4326008)(6666003)(2906002)(86362001)(72206003)(14454004)(478600001)(6436002)(3660700001)(6506007)(66066001)(36756003)(22452003)(25786009)(2950100002)(22906009)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR2101MB1000; H:DM5PR2101MB1032.namprd21.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: iscb57jO8+rviXFjqIgh17TYeg4VgGadHqpFSNJwS4yzWn3DafaEB9Y16k7YRNp8BHN05bCTSVt5hjJmGfduj/v2Rnq9xMhuuK+yXSFpxjDDYLek2CpSCYH+kQZcLcZGvlMvbo1bjRnce7FfT4Yhm6ufP1j+PTHbh/OYjxA4TQQ= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: d6e25229-dbfd-4ff8-d055-08d57f8901a3 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Mar 2018 15:23:31.3941 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1000 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Daniel Thompson This patch has been added to the 4.1 stable tree. If you have any objections, please let us know. -- 2.14.1 =============== [ 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 |= 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;