Thread (32 messages) 32 messages, 6 authors, 2024-03-28

Re: [PATCH 0/3] USB: core: Don't overwrite device descriptor during reinitialization

From: Alan Stern <stern@rowland.harvard.edu>
Date: 2023-08-11 01:52:49

On Thu, Aug 10, 2023 at 10:39:36PM +0000, Thinh Nguyen wrote:
On Thu, Aug 10, 2023, Alan Stern wrote:
quoted
Never mind; I found the problem.  I had forgotten that at SuperSpeed or 
faster, the device descriptor uses a logarithmic encoding for 
bMaxPacketSize0.

The patch below should fix things up.  Let me know how it goes.
Quick test for Gen 1 and 2 devices work fine now. Highspeed also works
as expected before. I didn't test Fullspeed with various MPS, but I
don't expect any problem looking at the change.

Thanks for the fix,
And thanks for testing it.  Is it okay to put your 
"Reported-and-tested-by:" tag on the submitted patch?

Alan Stern
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help