Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2774908ybp; Sat, 12 Oct 2019 17:36:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUPgcbhsXUeedRZxWFQJhxWbD/cUKUJpwY8XCtQV1C93tiKScl+hYYKFADOzILkY3rCcqr X-Received: by 2002:a17:906:48d4:: with SMTP id d20mr16589957ejt.246.1570927008243; Sat, 12 Oct 2019 17:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570927008; cv=none; d=google.com; s=arc-20160816; b=uMj71gN+o0/2YrlVV8+CD/bNcvLXmMew4kZatYbA2JLR6BaVSsdtnOKPPUuP1HilRv nsaLO3Zw6cDmzVXOkMAuNqjOO3YQKZmlxvPCnvrJHNIOoFRaQyrqJ4Y5t1iQR7lAHsy1 w15JJiFgJvDoRJnLAng1zvxIvJdBt8CHW/fujHK0vUgSKnMym78HVDbN6n2TWcaPoKNP JHX1Ag9EXtVnLUnGoikj7JUPir/lzUOJvcuNvAoEq4Sdz5RKNCpNO2BCLVUU9dsoq9NN 0eTSoaU4T/5H2YxWTbXT8GN91StDzC1ehpJDD78EaQxdMAq4LAs7x4hF/F3APd7U6v/B n8Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=sF/2fjehrp847HWvQehXTFLsYk38wOcGJS5LdY/5GJs=; b=jXLvZSav/NzvzZm3h6Po8FbrwIs3Nsy0lzNZWt1f+I7WqZCVScpH8+HDIsxbwnBqiO rsGHyJcAYx4H/iICXt2AQjWNar9Eo+cs+4UG3VUqunvBPGsy1FpiGv1Y940ISAjlktPV QMCBHaw/ebP6+Lh8wxwfbWaVaOT/vtPq+lkojVnwOAl3Wstn1aU360MeKJf1t+KqxH8F s1+phYgcZMdnZ6Qj1kqoYelevWeFxPj1I5USSccaT19kzX8P7EIeSGakhI4dp/l5747D N7QK8EDMKIbArqP7Erh1Lv2etIlFTIRW4S0j7riy+431RFJTSHfU3OKMZgyJXyBZjF9O kMNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmx.net header.s=badeba3b8450 header.b=Cnxt4B1g; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 bt6si8603878edb.69.2019.10.12.17.36.24; Sat, 12 Oct 2019 17:36:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmx.net header.s=badeba3b8450 header.b=Cnxt4B1g; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728380AbfJMAgN (ORCPT + 99 others); Sat, 12 Oct 2019 20:36:13 -0400 Received: from mout.gmx.net ([212.227.15.15]:48871 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727909AbfJMAgN (ORCPT ); Sat, 12 Oct 2019 20:36:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1570926965; bh=Hus0uxEg0+H82T5bgS3JNhSkHrR3egJTX/E9/MTSWQE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=Cnxt4B1gZCR6uvuvdpSdJiyQBs45BYOIT3Mey8UD77mBHMKRnyAB1JYtTKRWhr92r 8n1wsMv6C1bRSe7zqoRbAP0atisxpHw5Hik9Tuw7IKj8PTqr7gnmAM15e/8A0uEwue XU7o8EbsW+PiJ9za2zJJKM4Bqi3/km/un4I9UdoI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([212.88.11.189]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M72oH-1iQrz13wcR-008cqs; Sun, 13 Oct 2019 02:36:05 +0200 From: Bernhard Gebetsberger Cc: Bernhard Gebetsberger , Mathias Nyman , Greg Kroah-Hartman , linux-usb@vger.kernel.org (open list:USB XHCI DRIVER), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] xhci: Don't use soft retry if slot id > 0 Date: Sun, 13 Oct 2019 02:33:13 +0200 Message-Id: <20191013003313.3497-1-bernhard.gebetsberger@gmx.at> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:uchScNY3SucpZNKqqmONoQkV0fukb20RlmrbYFFgdI+Oyucg9P0 FHZUT3R24J8u8vspkkfke/Q3QBWx0WMg/GTHlyySP9PSuwToJylBks3BTZAy3/VN2Czq98k 6uaDTpdEbT5onr4yaiWHsgPrHLCM0Jw7oBR66uN4Npzm2yvs5I6fYf0O9fzbZ+ObEncmcyd OQMIZAxBaQJ0BaqVRExJA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:1Dy2TTRnpjg=:OeZOYTq89R6h+ktdlRJ97b vl9M7p8XDImE/2bKzsMNjl/oOwsmCgY3HAgJN5KoLySKK++dF8oz1rFJLyQ58NJeh04+RC26q M8zHmlN9AQUETAFQ6Fi5wMgBGm6G12d7ouTGJh69tpxikEzlKegWUlbF8CbrD/MzelhcI44Z2 Fq4avUFOUZaAXH01S+Xn5dBt5L/qneq6Z8LGwouUJf2YSv/EHQ5BjrC3W/u4W+QjrUBP6dWeB 73L6C0rFNqrN6g+S18qIPlqLCzRHB9BqxdNIx2TR76w9ZK122JSa2RcqRaOxpEj6NKqnsuHN/ ZT57eJHW9n6KvqOLXMQyg8T/SyLur6FDZaU3Ul6d1gDg9QJNCbesPOCjbguh3Wpa10ZCvUWv8 C5TSVZaE6NEitKj/6NHgaaXW9jJ0GoaMho1Dn9HOIwQ74ef/r1tyzxNgQVpQ+iKxbnlgBoBJ9 4rSMfnY+Hg3fFSzsiCV2aPVzzsLB3MJrg/wqMpJL0oGxX140vpEOcQh0Y23NMzZHAq80n7dI8 gojuf77ulAPKn6EjoC/+bkQNwI+l8ag2Hw/EdQwarnJ1/U42quw5Y0puV5MOxL32i8SDQmrqv 1jw3TsPMdKXe3+52ZTw5xWepJbD6aeO7LkTEKfiFVZ/XePbu2RNcFRFVGR71LjBsqAAz8skWD Rf3CGCpqZ2KTPWmYvmb6Bxu5eltQLcnYFLGD7mGOwhf10bB5dPstbKUqvw3uEnwIVz3sZbAWZ m+RCbu/sUQBtHDV12Mnd1AQIZqkBG1EFfdwF8f1CzRZ6w6Yj+chVlZdmTO2bu7xakwKxsECli cRayRRk7R/FFTIIdQapIHV/lZEcq7GQ/cNEGk43Pbnngw3CkRFRVssy0U9ERdefeJtBPj61jd YP3FDpY0fVZJfqjxCAe6Y73NHZV6VxSJTzEd7Cvk0CpjVV5KSuQpPkUN0+QSDBFbPtK5z57PD iT5Vz22de1EUjvThUOPVCP8Ols5wcKIMnYXBa06s2FM1LHKkGbi4rbH6Bq/QwbLYCBFYBTSd6 meklBpvKWBBiY8wcxYUWCcJs2XSBt9Vh79+7zSzGr7JT7pfP4UYqJLKkUwzqTydiAJnkKoiZM 6kWicvZbNeiKurfY5/Oq3g2vfEkvfQcGV3mXNUREYZCwhgyBUx3g2HpPSpAadoIeQUjESm+nk KLk07OP04oLiWGgZo8znCAsAp/UZtVKbofyANoomGSXx22OJgLKJh1IqldVyjvhkw8i9nx67w VINoAU6Y/GaYZhSnYkwu4IL+gzrTlLj8gVjmVnY4tefa1t0UgfcwG9Azydfo= To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to the xhci specification(chapter 4.6.8.1) soft retry shouldn't be used if the slot id is higher than 0. Currently some usb devices break on some systems because soft retry is being used when there is a transaction error, without checking the slot id. Fixes: f8f80be501aa ("xhci: Use soft retry to recover faster from transaction errors") Signed-off-by: Bernhard Gebetsberger =2D-- drivers/usb/host/xhci-ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 85ceb43e3405..5fa06189068d 100644 =2D-- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -2270,7 +2270,7 @@ static int process_bulk_intr_td(struct xhci_hcd *xhc= i, struct xhci_td *td, break; case COMP_USB_TRANSACTION_ERROR: if ((ep_ring->err_count++ > MAX_SOFT_RETRY) || - le32_to_cpu(slot_ctx->tt_info) & TT_SLOT) + le32_to_cpu(slot_ctx->tt_info) & TT_SLOT || slot_id > 0) break; *status =3D 0; xhci_cleanup_halted_endpoint(xhci, slot_id, ep_index, =2D- 2.23.0