Thread (14 messages) 14 messages, 4 authors, 2021-10-04

Re: [PATCH] r8152: stop submitting rx for -EPROTO

From: Alan Stern <stern@rowland.harvard.edu>
Date: 2021-10-01 15:22:37
Also in: linux-mediatek, linux-usb, lkml, netdev

On Fri, Oct 01, 2021 at 03:26:48AM +0000, Hayes Wang wrote:
quoted
Alan Stern [off-list ref]
[...]
quoted
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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help