Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3694011rwb; Sun, 25 Sep 2022 10:52:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6zwsltoibMgMOEBzIv6gXLDqu2HMusFvBtEpNb3I/9QxFAlXbcCEFKf9qvTGF4XX1jpKav X-Received: by 2002:a05:6402:1909:b0:451:ace7:ccbd with SMTP id e9-20020a056402190900b00451ace7ccbdmr18511699edz.276.1664128374829; Sun, 25 Sep 2022 10:52:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664128374; cv=none; d=google.com; s=arc-20160816; b=BYMA4j1zzkUlMWom9stmD2c0Xyh8I4Ebtxck9a2gFOTwXsp+7Z69gdZ0QhTADxoTiF dM3xEntcf0VoiBwXMJtmEIF/D6n/Jwsu4uhLM07gM+VxjvROC8ZsxDJEk732yDixOzKF vidBonQ68F/b1VH6QWD8ETA7ySYPRqmc7ek7juUC5mIUZ4gsCznJJ21Kpd6wZv7OYcAe vgK7ryHEMUwJ2IpE86I99lPM9e/syAViB1cIi9zFn5fpqIQFzxmoNRXyYh/iATjt5vf3 rUL/axxICZ2ybT/frF7bLkFM12AETSYx/YAkojyqmffkryUdAr5UWPvZ+uE3rnGcda/q 840A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=CH14yVLe1A5xO5APsCH7lXhC1n+PO1PIR+3ERJj1ivY=; b=G2hv6njZz5gHo2/o9AC7oK0YBszdF/ACUQATw1wdVxyNQxQGm21AU1C9HNbFjUcqJ8 xh1Jx6B/lgKc4CyUrCHLsJ9kmip6GH8QKcWfuww881nvMUTiRFIn4WTDqlkam7LtJVey XkA1jmp4DjOr+0+WUO44W+n+GnGziIPHO8Ot6khKM2f5hWrpKdE3aoniqufQE0fv8S4F obUJeQYDnN21I9VG7ozA1LleLZKBz9El/gZtUfp2TWByOkSP/ic0s7F2TUCBRX9xBHsU 157oaIY7flKY8Lf8GHo8LV0+dJpZCdlgR1bmA3ic70HgpMK642oiXb35J5fOUQ+aG/DU ugWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i20-20020a17090685d400b00730f3cb968fsi11336924ejy.990.2022.09.25.10.52.27; Sun, 25 Sep 2022 10:52:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233080AbiIYRXy (ORCPT + 99 others); Sun, 25 Sep 2022 13:23:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232458AbiIYRXw (ORCPT ); Sun, 25 Sep 2022 13:23:52 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B37A2DA83; Sun, 25 Sep 2022 10:23:50 -0700 (PDT) Received: from vpenguin.haus.lokal ([91.64.235.177]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MzhWp-1pP7rt1ePh-00vgdE; Sun, 25 Sep 2022 19:23:44 +0200 From: Jens Glathe To: mathias.nyman@intel.com Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Jens Glathe Subject: [PATCH] fix: add XHCI_SPURIOUS_SUCCESS to ASM1042 despite being a V0.96 controller Date: Sun, 25 Sep 2022 19:22:37 +0200 Message-Id: <20220925172236.2288-1-jens.glathe@oldschoolsolutions.biz> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:ib8aAaNZUx8RMF41/ytzL4yIwOYo+axTAou/YN4YgJ2Fb3x2L7G 4pZrztwLyTRJnnRPpmEWmVBDZjd0kn7I2jnSiwMiN5oLnxsUS3GB8LI+XJ51b/8uhT75YTz 56jY25h6WEYrfWI2a65iXWclFWp2WC+5e8KS1Jtl08tF/EDEQXL8MOhXfXmSTdNDP+mTO1R cHut++ZtU4LrS5oEvCpFA== X-UI-Out-Filterresults: notjunk:1;V03:K0:OLKIUPcAzgM=:JQN1iSiSHQWUjn+drjSvTB /HcjKOK2xHql2li/C5+GTPUZKxykAp6WGyaEKk84XbaZAeC1G9pYL548BI73DEaOwRY7dNfCr gYxHaY0rOwH2BIch0B7WjWYDhzGJdUGBrwlikG847BuchvI/nBRisRZ1bLXn0rWmWQWNIXEWc SrDARoaFOLE+f/M0rxVHKsFvON+0ymemWGjATulB/d3jgxAPI8Q0R2gSW4UuO/GbWxmtzuk5c 3yqN7eaaxSrtx/yJasblTrOdVDlG31PriVq97K4Xpi52y1swHoUf9a8I9ZHXh1DGWgQIUl74S wDH9Bl/CiyjYY3i7nAMHba0NyitiIJ8ene0QRpgPW9XiamJMrkA1hs6EXYj35o0YvC+BZDnqt xACCpyEsmQIjhjVdbudn8hMPRjQlweJxiuMtTO3ra85TuQmzZWYdCMhD/2GbtSHL/z+NnVJEc HZgo0GdIdal55RGl/bUJ1evv7uLZbLLtHABs7FVGqNphM/V9zqCPpl0+ong0scv1YLVV4peDG VJ+47A+T/vYYjYB6eyWIRqGvsT6aSnaVwy1iDifwX0eCeK9a7dpFhqQDu+PHPPS1L9agLDowf jY1nIWno2Y2nQ7BKs3mleDnNxrOJnO3aeVQieOEFTw4apS2CKaX0enys/AGUf+0fqCZOwHdV1 Eql4q34jBkv3W25uFZXcrIrbFeVCzi5v/zNVvocUmO0JcJhuR8WUw9LYkI2kThB25V9wClkB+ x1NZkbG0QDZ3xgBGlkEG1CRxWKB42ux1vNxKjbx2T2Rua6Vst5iibrIpNccX5TkDhrW5bvzDT Bv6bZZFmgAElY2D3W50LC7RxkzUkQ== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org only if it reports as a V0.96 XHCI controller. Appears to fix the errors "xhci_hcd
; ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 13" that appear spuriously (or pretty often) when using a r8152 USB3 ethernet adapter with integrated hub. Signed-off-by: Jens Glathe --- drivers/usb/host/xhci-pci.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index dce6c0ec8d34..d1b8e7148dd1 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -306,8 +306,12 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) } if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && - pdev->device == PCI_DEVICE_ID_ASMEDIA_1042_XHCI) + pdev->device == PCI_DEVICE_ID_ASMEDIA_1042_XHCI) { + /* try to tame the ASMedia 1042 controller which is 0.96 */ + if (xhci->hci_version == 0x96) + xhci->quirks |= XHCI_SPURIOUS_SUCCESS; xhci->quirks |= XHCI_BROKEN_STREAMS; + } if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI) { xhci->quirks |= XHCI_TRUST_TX_LENGTH; -- 2.25.1 --- Hi there, a "try again" with git send-email and the corrected patch. Hope this works now. with best regards Jens Glathe