From patchwork Tue Dec 12 16:47:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Thompson X-Patchwork-Id: 121567 Delivered-To: patches@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4358403qgn; Tue, 12 Dec 2017 08:48:05 -0800 (PST) X-Received: by 10.223.191.13 with SMTP id p13mr4737833wrh.69.1513097285318; Tue, 12 Dec 2017 08:48:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513097285; cv=none; d=google.com; s=arc-20160816; b=YyWOxEZCYXrNvCEdAHa+TLR9DVZASfGo3gOVxw+13LFU5AteTD8HDZEhdkwdInd6lD rn+jXLa472dyNBO8kfALPNwwDF4NtP5RSgcm26jIrJ+iu8oTc8HPKyB1F+7XYetGCnmk t8711jBgojfIBSf1V/D2t+mcDQlDcFKcbUL0tFjsZG/GCdsrtx8XDQJ9jjIB7GoY2pFz 4Z7eglCha2ndlqT3jQYAI8vUeQJN/pzwVWcfLn+mPFSrYCJ9Iroa35P3YfsDoIxqV4ID mwM1uCk0SkAgWNprHer3LzHuq/kHSFQka34vb2bOo19NPjlimM5l3GVsrNkQXWQvlLf3 xmhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=EM3FNNQjc02qS6W/RjtD4b0R4ZcxG5URbla6BO8VET0=; b=HdaM0NmNw0/ZRSIYZflS1zAqgdalsFxOsg0AiAb5ozti14XNG1BXf5GA0UEH2s5uwv eo98rNw8rXd3m5szRny0ZsooiJEsweJBaQtxFLCUXDkyQ13pD9iMxtEFk9QBnZML0/qw YoQLskoe4W7+EK0X/MbUCDrRbdV0/ujIyt96e/d/6T7lq5icmvq/m/17KEZaAqOEv4Ht tJirv88UrvLtK+/dYfBxY6kjgfule7l3Vb2UqbJrtwxEByyqObOS8CSn2k3tOzZhvs+N twAwPX45x+kZ+KCo0ERr3hIfv9vKsSIxC8CDRJJOxRFqi+Hhpw9h5WE484uhrot9sMIF 7OdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BXBvMvdy; spf=pass (google.com: domain of daniel.thompson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=daniel.thompson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id j21sor8317140wre.75.2017.12.12.08.48.05 for (Google Transport Security); Tue, 12 Dec 2017 08:48:05 -0800 (PST) Received-SPF: pass (google.com: domain of daniel.thompson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BXBvMvdy; spf=pass (google.com: domain of daniel.thompson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=daniel.thompson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=EM3FNNQjc02qS6W/RjtD4b0R4ZcxG5URbla6BO8VET0=; b=BXBvMvdyEUfy9i5HZACLRBnT4bqXZSucg3q9BK/DJj91048sFD+gdxKhWrnd8E29ek 109629+KvSfEDI1QrgJ57R46SeNpol2epg9MURTKenxfsp8cnRnSzhSJbrujo0nlt0op TisHekd/jb5SXGGTj+0APGXyFS9Dw1qAC6iso= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=EM3FNNQjc02qS6W/RjtD4b0R4ZcxG5URbla6BO8VET0=; b=WZ9rQc0s/VgJYCgxo6f38R0XplStu8J+4sJYFglFqUP7EeGNG/xEFGu5gS6d+E2p8U 6u9Uo0X8W0NgzZHldmuSxQyivGAdgahAvrhuUUAjwCQxEzf8ZuRxgcjGV+YYYLIx9KHc ucM8dGtrSDJIux+L/54ZH+4CoPPEd4/Zem7EqUfWonfql+fwn7/+hrJ9VgsU7Y496sWf fWk+pgCIsNpfe6shtN6vR62+4+9GmePMtnuNKeZr9LPVuQNHDtFiM1PVBrvnUkfPVvqK suWcYQNSei+PlN8QacTtyDiVb6CQT0VLKSAvbIsQHw2XqUNd3u2yRsny99ypA0AzhY/9 GA9w== X-Gm-Message-State: AKGB3mKLjYcdTM61f5BExQbzXGWyrvVDOqVpnzy1W68MBvJs1pLr3LPT u5x1KY6xxH/WW1woj1lZp2Ra8Ru5 X-Google-Smtp-Source: ACJfBovn6xus2P8Ip9kwihkTOyXJIhv2MK+jOfVw41loos85w31UxErGf+TspiZKuvTsKwu+Kbw4sA== X-Received: by 10.223.163.133 with SMTP id l5mr4751372wrb.83.1513097284753; Tue, 12 Dec 2017 08:48:04 -0800 (PST) Return-Path: Received: from oak.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id o16sm12334450wmi.29.2017.12.12.08.48.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Dec 2017 08:48:03 -0800 (PST) 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 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(+) -- 2.14.2 Acked-by: Ard Biesheuvel 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;