[PATCH v2 5/5] usb: gadget: Tighten CI_UDC dependencies

Mattijs Korpershoek mkorpershoek at kernel.org
Tue Sep 30 11:30:25 CEST 2025


Hi Tom,

Thank you for the patch.

On Fri, Sep 26, 2025 at 09:30, Tom Rini <trini at konsulko.com> wrote:

> This driver cannot build when DM_USB_GADGET is enabled as both options
> control building of files that use the same global namespace and
> functionality. In this case make CI_UDC depend on DM_USB_GADGET being
> disabled as non-DM support is the legacy choice.
>
> Signed-off-by: Tom Rini <trini at konsulko.com>

Reviewed-by: Mattijs Korpershoek <mkorpershoek at kernel.org>

> ---
> Changes in v2:
> - None
>
> Cc: Marek Vasut <marek.vasut at mailbox.org>
> ---
>  drivers/usb/gadget/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
> index 9065e14768ad..9f817967a08b 100644
> --- a/drivers/usb/gadget/Kconfig
> +++ b/drivers/usb/gadget/Kconfig
> @@ -152,6 +152,7 @@ config USB_GADGET_OS_DESCRIPTORS
>  
>  config CI_UDC
>  	bool "ChipIdea device controller"
> +	depends on !DM_USB_GADGET
>  	select USB_GADGET_DUALSPEED
>  	help
>  	  Say Y here to enable device controller functionality of the
> -- 
> 2.43.0


More information about the U-Boot mailing list