Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp872466pxb; Thu, 30 Sep 2021 20:34:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCxwGFiCwYzGBnyLdaa7dQ5gGtlp0NG8piA5LthBa7dk8XSLKuu/JLL7o6T+Aq96G6l7xT X-Received: by 2002:a17:906:2bc3:: with SMTP id n3mr3547591ejg.548.1633059295976; Thu, 30 Sep 2021 20:34:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633059295; cv=none; d=google.com; s=arc-20160816; b=i6TeRJCu+qeRLc5Zq2XfA22jkM6V1DoZvteFpCtHfq2euG+YFGkBxuCHD1iSaIZVgk z8ybuRlCQkLJN894eFgpN7pSwydZqeSHSoY3coluvj+5HPoF2SYE0izlraVGiBRVfmZc QiM7s0/C1hH884vpuFs7sdhPPWRQHu84ZNuORjL2d3gPfIHYAufinQFgpOOKdOp5uMPZ rU1IWVqiklZ6Cq/qQ6odzTiu6huIE+5orsqv0UQYvWakZMUH6s0/IyGLj18H8Dr5JnoU 5Tv1AXwc5rhGM3N3cFeuVY90tE6ie/x6uv44rca5MDRzUx45IZEbO5gAolJ9bjipZjW0 GcoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=bYvqda2PcqMljyje1P8DXYHlQIspO2Ho6+bwRVLmksc=; b=DvrcPhPBCft2kYgurFnH3eBI/N9sqbWCFO+IOH9fb/c/sBE1xxLUjLbkzYwXkINwrB ZeXj+kAo1mqqOrfn8USyl+Lfs26TbrPBxI7UmbO3i1CCguSdvfq9ZC7Qm5iGdfszkqYK dcw2wsosSTa5XwHM6RIajQhYuAUTUGs77nbx4vswp+3Ezci0hb5Obk0HxBazyCxKn95d iLQ4+BkKULHcRks0d9DgovHmXByhtKtPKtVy8t0lyy/2o4cit7VZvmd6EW+SfyUC/cgU uoLxbM3JLra+4MstdhkG6ur2mnv6pA57itaiLoh22xGvT1ewS775tquWvxhBTJFu/e8M Y55g== 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 x9si7202144ejc.15.2021.09.30.20.34.29; Thu, 30 Sep 2021 20:34:55 -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 S230421AbhJAD2z convert rfc822-to-8bit (ORCPT + 99 others); Thu, 30 Sep 2021 23:28:55 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:42326 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230283AbhJAD2z (ORCPT ); Thu, 30 Sep 2021 23:28:55 -0400 Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.73 with qID 1913QnFD2004059, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36503.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.71/5.88) with ESMTPS id 1913QnFD2004059 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 1 Oct 2021 11:26:49 +0800 Received: from RTEXMBS05.realtek.com.tw (172.21.6.98) by RTEXH36503.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.14; Fri, 1 Oct 2021 11:26:49 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS05.realtek.com.tw (172.21.6.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 1 Oct 2021 11:26:48 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::cdd5:82a3:e854:7098]) by RTEXMBS04.realtek.com.tw ([fe80::cdd5:82a3:e854:7098%5]) with mapi id 15.01.2106.013; Fri, 1 Oct 2021 11:26:48 +0800 From: Hayes Wang To: Alan Stern , Oliver Neukum CC: 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 Thread-Topic: [PATCH] r8152: stop submitting rx for -EPROTO Thread-Index: AQHXtPF6mRt31KuIqUSf0ySwz113xKu6nqYQ//+g0oCAAYwXgIAAYT6AgAFAzFCAAA04sA== Date: Fri, 1 Oct 2021 03:26:48 +0000 Message-ID: <5f56b21575dd4f64a3b46aac21151667@realtek.com> 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> In-Reply-To: <3694347f29ed431e9f8f2c065b8df0a7@realtek.com> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.177.203] x-kse-serverinfo: RTEXMBS05.realtek.com.tw, 9 x-kse-attachmentfiltering-interceptor-info: no applicable attachment filtering rules found x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: =?us-ascii?Q?Clean,_bases:_2021/9/30_=3F=3F_10:00:00?= x-kse-bulkmessagesfiltering-scan-result: protection disabled Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-ServerInfo: RTEXH36503.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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.). It seems to be reasonable why resubmission sometimes works. Best Regards, Hayes