[PATCH] usb: dwc3: gadget: Fix match_ep callback for NXP UUU tool

Mattijs Korpershoek mkorpershoek at baylibre.com
Mon Mar 24 09:26:03 CET 2025


Hi Francesco,

On lun., mars 24, 2025 at 09:03, Francesco Dolcini <francesco at dolcini.it> wrote:

> Hello Mattijs, Marek
>
> On Thu, Mar 20, 2025 at 10:47:02AM +0100, Mattijs Korpershoek wrote:
>> On mer., mars 19, 2025 at 23:07, Marek Vasut <marex at denx.de> wrote:
>> 
>> > The UUU tool excepts the interrupt-in endpoint to be ep1in, otherwise
>> > it crashes. This is a result of the previous hard-coded EP setup in
>> > drivers/usb/gadget/epautoconf.c which did special-case EP allocation
>> > for SPL builds, and which was since converted to this callback, but
>> > without the special-case EP allocation in SPL part.
>> >
>> > This reinstates the SPL part in an isolated manner, only for NXP iMX
>> > SoCs, only for SPL builds, and only for the ep1in interrupt-in endpoint.
>
> UUU can (and in our case is) used also on non-NXP i.MX platforms.
> What should we do?

Do reproduce the problem (UUU tool crashes) on those platforms with
recent U-Boot versions (v2024.10+) ?

>
> Francesco


More information about the U-Boot mailing list