Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp338516rwb; Mon, 26 Sep 2022 13:08:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5oJ4Zezv3ZQnMQDuFuLM+9/TWL5FdjN99R9fvqWJhp8rf0oBuYu+sGCx5AifUz3HWeXilU X-Received: by 2002:a17:90b:3752:b0:200:b29b:f592 with SMTP id ne18-20020a17090b375200b00200b29bf592mr486680pjb.81.1664222903074; Mon, 26 Sep 2022 13:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664222903; cv=none; d=google.com; s=arc-20160816; b=LkOmWE1EYACjgruCuhvu5gN3tkSQZQGzgd1fbREoY4squKUwPuk3YBJ6YOY/k6fi+X FAHvGhv2KJfF6/KayUlnqMY3Q6P7Mv8jIWiFYh+XANVeqTvPa4OuVGS0MjSCZ5ShnLxV 8hgJI/DqmTfUCHE6efDAaaLBEFHa3IxOGg96daGM2+uC6E9pcBVkWuAENcgbGNzloH5+ 5nlm25qHK2j017pzo+1kJDtpZAPMHl9+X2DmVRE1IdHvtS6dj2Qcp5f3Ulbu5F7P/8GV 31Hds5GHNPcP/h7O59DBRNgUjZVEf2A64r7EtgWnILUXtaLua46WiV4jjOgMk9B1uRpd L5/w== 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=jvpqMbljUVUxYqv+/sEfJjLwUumxK8PPTDoYpwynKpw=; b=c+KUifS2uAGz6aPESCsoCQYa5Ka86wOCxuTiEk7jI6X4DEVs2RaX3G9L8b/xUFG5Y4 4WHjwmiVPvvhi4tZPouH6Cxz5qwGeb4BBAejvfmAEBmhP1DitCdmZYCpYjNnv/qdRrzr HMjU6o1BDHX5Y8Dyw6HKPu20RL2USKBTF1u+NHWcgjHjcG0vvRumbt2cqJXzm1Ti5Jv3 SG3RgcnSIobnPCA59+LPUla4YNncwJCQLcRET3wgKa1xcYEJJFdDR/cR9mJPabDQdeqD SH+O45mK0G0Q4glah7RX1jg+rxsSq3CjMSpJ2KsOEpniqqciYSouq3VHmfboDkVOGen5 z88g== 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 t2-20020a17090340c200b00179c4bebb6bsi11036252pld.409.2022.09.26.13.08.07; Mon, 26 Sep 2022 13:08:23 -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 S229905AbiIZTcY (ORCPT + 99 others); Mon, 26 Sep 2022 15:32:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229580AbiIZTcW (ORCPT ); Mon, 26 Sep 2022 15:32:22 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 137598A7F0; Mon, 26 Sep 2022 12:32:20 -0700 (PDT) Received: from vpenguin.haus.lokal ([91.64.235.177]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MowX2-1p2Xnp03iA-00qQfu; Mon, 26 Sep 2022 21:31:55 +0200 From: Jens Glathe To: mathias.nyman@intel.com Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stern@rowland.harvard.edu, Jens Glathe Subject: [PATCH v3] usb: xhci: add XHCI_SPURIOUS_SUCCESS to ASM1042 despite being a V0.96 controller Date: Mon, 26 Sep 2022 21:31:40 +0200 Message-Id: <20220926193140.607172-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:J80jwyXT2lu/5lcoR+M2j8vXIcPzZL0+rK1Om43jbxyYtXMO7wc 5N0xboR4crsVTMb14VhLz+U60gWTGNbPDuOEYF+YXiL3UvbLwR6MIvxNrFHJZ/MaOzI/MUF bduve+wl9Iq2kCsnC5vVQS+T6Khzexry/E10K+jpWDbGI9MfPhnYhbiP/U+1oXRPxemabry 1pEYABOKr2Lgvi/9yh7QQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:lCSmH4A5rhI=:ysUi3rsEsU09LKbleHdcWI zvU7AlzpZCZOqxHXpyk+eDVDcl84OARQP5Ovo5Eou7cTivQCj23glvXEQbyROgGgypQM06gqo vHSFUtxf7C78QABQU9R+lnwXfmq1mFkpUY7ktPQra5MN895RWEAQPd1ONVY+SXbAz1LlIXdOb H44ZZJJiIGc8eOpGJ7SefSDeR/+NFb59IuIOFIsxt593nUEKH5uUwMTRna77k0JD2kRgUp7Np bZ7BbIuUQkdj7+hCXhHEVaG3+1CmGDM73Uxlx641Al2WtDqhGwFR2QFioGRRzhymWCoWl46dO ndzr0ijUkyCPO8gNlnflCVIbXZGIi2JjnfyHku5VxYXapNvdATzUAeJRmeahAPMGbPCmgdbuL 3QN3Co0VSXus3scH0pGbNRYkLPTGzWkD+U6blAAU08s2QE4VF9JuGwJW4eD7/pyPKT7SMk0S+ fdab5kRjuB6BUHoFjCA5FsJKHCBsSge8k+dkRL5gmzbhFfBx2S5cv/ibfK4BDeF+arXgmke39 h9pG5zgm/FjkFnKfEaD+d7lQLqhcWe4g2Wudlo1NgfPQ11lEz8JxC1L0bCXLy2Xv2BtN1cOud dgBAvCo0ES4Te+RZNpqtkD3KzJcB8b9uY1FJzayWEhvSTs8V7kw8AhyWJL03KydvlqEo4lvBk C5XH/sQ/0bM0AEc08b4FDleQnOYqlvTX8oL8vz+2dqMIyKYjltxXhrVlNG0idpm/JbFQU+hsS IXRkl629/R+hvTUrVrmAswBXS1O5IXDhp4Wz7+e9fjnvy+zXC0mCxV7sG/b1FH60ONm2Drdlu m8jlzYFKDe1wwualQGthaeU9Y56zQ== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 This appears to fix the error: "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. ASM1042 reports as a 0.96 controller, but appears to behave more like 1.0 Inspred by this email thread: https://markmail.org/thread/7vzqbe7t6du6qsw3 Signed-off-by: Jens Glathe --- drivers/usb/host/xhci-pci.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index dce6c0ec8d34..ef2df1b01168 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -306,8 +306,14 @@ 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 reports 0.96 + * but appears to behave more like 1.0 + */ + 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 changes v2->v3 reworked commit text to specify subsystem, hopefully also a better explanation why removed check for 0x96 controller since the outcome is the same as if xhci->hci_version > 0x96