# Re: \[PATCH v2 2/5\] usb: gadget: f\_uac2: reset wMaxPacketSize

- From: Felipe Balbi \<balbi@kernel.org\>
- Date: 2021-01-07 09:25:24 
- List: linux-usb
- Page: https://ratatoskr.run/linux-usb/2021/01/6226320
- Thread: https://ratatoskr.run/linux-usb/2021/01/6225416/t.md

```text

Jerome Brunet [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

- [signature.asc](https://ratatoskr.run/linux-usb/2021/01/6226320/attachment/0) (application/pgp-signature, 857 bytes)
