The MSM8916 SoC includes a ChipIdea UDC. The U-Boot driver for this UDC is quite old, and did not support USB gadget driver model. As a result, it could not be built alongside the DWC3 driver. This meant that qcom_defconfig could not include support for USB on MSM8916.
This series adds support to build ChipIdea UDC with DM_USB_GADGET and ensures that the newly introduced driver is registered from the MSM EHCI glue driver. The ChipIdea UDC driver continues to work without DM_USB_GADGET. I tested these changes by building dragonboard410c_defconfig (which does not enable DM_USB_GADGET), booting it, and then chain-booting (via fastboot) another u-boot build built with qcom_defconfig. USB gadget mode worked in both builds. Signed-off-by: Sam Day <[email protected]> --- Changes in v2 (thanks Stephan): - Deduplicate CI UDC setup/teardown paths - Formatting fix - Regenerate qcom_defconfig with savedefconfig - Link to v1: https://lore.kernel.org/r/[email protected] --- Sam Day (3): usb: udc: ci: support USB gadget driver model usb: host: ehci-msm: Register ChipIdea UDC from glue wrapper qcom_defconfig: Enable MSM8916 USB PHY + ChipIdea UDC configs/qcom_defconfig | 4 +- drivers/usb/gadget/Kconfig | 1 - drivers/usb/gadget/ci_udc.c | 118 ++++++++++++++++++++++++++++++++++++-------- drivers/usb/host/ehci-msm.c | 7 +++ 4 files changed, 107 insertions(+), 23 deletions(-) --- base-commit: 987907ae4bcc5d6055bdf7d318a3edf53e14d5fa change-id: 20250412-msm8916-usb-a1dc93c01bd5 Best regards, -- Sam Day <[email protected]>

