Re: [PATCH v2 2/5] usb: gadget: f_uac2: reset wMaxPacketSize

From
Felipe Balbi <balbi@kernel.org>
Date
2021-01-07 09:25:24
Also in
lkml
Reply to
Jerome Brunet, 2021-01-06
Jerome Brunet [off-list ref] writes:
With commit 913e4a90b6f9 ("usb: gadget: f_uac2: finalize wMaxPacketSize according to bandwidth")
wMaxPacketSize is computed dynamically but the value is never reset.

Because of this, the actual maximum packet size can only decrease each time
the audio gadget is instantiated.

Reset the endpoint maximum packet size and mark wMaxPacketSize as dynamic
to solve the problem.

Fixes: 913e4a90b6f9 ("usb: gadget: f_uac2: finalize wMaxPacketSize according to bandwidth")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Acked-by: Felipe Balbi <balbi@kernel.org>

-- 
balbi

Attachments

Thread (11 messages) 11 messages, 2 authors, last reply 2021-01-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help