[PATCH] usb: gadget: udc: Fix duplicate uclass name

Simon Glass sjg at chromium.org
Tue Aug 6 23:50:42 CEST 2024


On Fri, 2 Aug 2024 at 03:31, Zixun LI <admin at hifiphile.com> wrote:
>
> Currently both USB host uclass and USB gadget uclass are using the same
> name "usb" which break uclass functions like uclass_get_by_name().
>
> Rename the uclass to "usb_gadget" to fix, also makes bind/unbind by class
> index (or sequence) working.
>
> This breaks the capacity of using "usb" as DT alias sequence numbering
> which needs a fix afterwards.
>
> Signed-off-by: Zixun LI <admin at hifiphile.com>
> ---
>  drivers/usb/gadget/udc/udc-uclass.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list