Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1363771pxb; Fri, 1 Oct 2021 09:06:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyULFehNwuUdTKquRRDQh/QODh5bMuLpFNdfWIQ58xFfH83gx7te1J9IdaVlAUn+gZOYPmX X-Received: by 2002:ac2:4c4e:: with SMTP id o14mr6193772lfk.224.1633104364435; Fri, 01 Oct 2021 09:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633104364; cv=none; d=google.com; s=arc-20160816; b=BZs4S0GaNCNDQWepujCwwbcFILoGdq0Avz9lF8P7KWsQX7nqS+EBVSk4Zp7IMHWJf4 WieZFrFCF4OOk3qcIxRetuwA/c++Z9qenv+ruFwVQiCkgduilj9eOsGsnqlZzPDXMIiV GdvrhN8jxb3phnFSeXPgYp9XPu/WStNbkjM+SGzjMbjEtj2BMjvmzyE6pkTJB2ZPUPPT XBtsogZLBC7g0lX4BQ0GDmzncsWqGsOi0UZdmRo0vCOxBUjTWtLr0RWv7Zyk6jCh10f1 I0U2dNEEtFmg1FhDmTlpuSiofEYMc+bxtTlwhqP6Ml7Beae441MDwkHbNOpg8kmNnaTB oCMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=U0/e7zg9AHSJsLogoReXNYM/UM2FEs9KSszWnCUA4/w=; b=g+EaKpDjldqT+ObhagCrsXSHlPM9bBHKD0R9cXGkyp0V870RzIN1Z11wHgxSW6o1jC uELoAd3mIuNPgT/HYRwQDmBY9RsTvi4OC/rZdjCn4TiLSR3ePp55C5eF6tghLcf7E/Xj 0wF8MIvq2zKkpvXLWhyplGgGOBRNP/daqdWm6jCmx6cNisihfDntw3gIpF5l/CcZqi6B YgKrNMp9YoKfcHplD35uJnXwRWEU0NEXNH+3FO8EWV6m7LR1OCA5/WuqPmbUYBb8ZDhM a+2coVimRb0qW6zLBm1cW/GE31yVtja7W/O3XWphTv0YBjWMtsMqX4LGvByQ4qZCl2ln lAPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp6si10135948ejc.477.2021.10.01.09.05.38; Fri, 01 Oct 2021 09:06:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355012AbhJAPYR (ORCPT + 99 others); Fri, 1 Oct 2021 11:24:17 -0400 Received: from netrider.rowland.org ([192.131.102.5]:42471 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1354734AbhJAPYP (ORCPT ); Fri, 1 Oct 2021 11:24:15 -0400 Received: (qmail 506376 invoked by uid 1000); 1 Oct 2021 11:22:26 -0400 Date: Fri, 1 Oct 2021 11:22:26 -0400 From: Alan Stern To: Hayes Wang Cc: Oliver Neukum , Jason-ch Chen , "matthias.bgg@gmail.com" , "linux-usb@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-mediatek@lists.infradead.org" , "Project_Global_Chrome_Upstream_Group@mediatek.com" , "hsinyi@google.com" , nic_swsd Subject: Re: [PATCH] r8152: stop submitting rx for -EPROTO Message-ID: <20211001152226.GA505557@rowland.harvard.edu> References: <20210929051812.3107-1-jason-ch.chen@mediatek.com> <4c2ad5e4a9747c59a55d92a8fa0c95df5821188f.camel@mediatek.com> <274ec862-86cf-9d83-7ea7-5786e30ca4a7@suse.com> <20210930151819.GC464826@rowland.harvard.edu> <3694347f29ed431e9f8f2c065b8df0a7@realtek.com> <5f56b21575dd4f64a3b46aac21151667@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5f56b21575dd4f64a3b46aac21151667@realtek.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 01, 2021 at 03:26:48AM +0000, Hayes Wang wrote: > > Alan Stern > > [...] > > > There has been some discussion about this in the past. > > > > > > In general, -EPROTO is almost always a non-recoverable error. > > > > Excuse me. I am confused about the above description. > > I got -EPROTO before, when I debugged another issue. > > However, the bulk transfer still worked after I resubmitted > > the transfer. I didn't do anything to recover it. That is why > > I do resubmission for -EPROTO. > > I check the Linux driver and the xHCI spec. > The driver gets -EPROTO for bulk transfer, when the host > returns COMP_USB_TRANSACTION_ERROR. > According to the spec of xHCI, USB TRANSACTION ERROR > means the host did not receive a valid response from the > device (Timeout, CRC, Bad PID, unexpected NYET, etc.). That's right. If the device and cable are working properly, this should never happen. Or only extremely rarely (for example, caused by external electromagnetic interference). > It seems to be reasonable why resubmission sometimes works. Did you ever track down the reason why you got the -EPROTO error while debugging that other issue? Can you reproduce it? Alan Stern