Skip to contentSkip to conversation

usb: musb: Remove reference to drivers/usb/musb

PATCH In review Tom Rini 2 participants 6 messages Sep 25, 2025

Subsystems (7)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/4 usb: musb: Remove reference to drivers/usb/musb

With this directory removed, remove the reference to it in the list of directories to traverse.

---
Cc: Peter Robinson <[email protected]>
Cc: Marek Vasut <[email protected]>

Marek, can you perhaps please fold this in to Peter's 3/3 on musb removals? Thanks.

---
 Makefile | 1 -
 1 file changed, 1 deletion(-)
Makefile +0 -1
index 0dc7da6ddac7..1697e95c0a06 100644
@@ -1040,7 +1040,6 @@ libs-$(CONFIG_USB_GADGET) += drivers/usb/gadget/
 libs-$(CONFIG_USB_GADGET) += drivers/usb/gadget/udc/
 libs-y += drivers/usb/host/
 libs-y += drivers/usb/mtu3/
-libs-y += drivers/usb/musb/
 libs-y += drivers/usb/musb-new/
 libs-y += drivers/usb/isp1760/
 libs-y += drivers/usb/phy/
Signature · 1 line
2.43.0
author
#1 lore raw

PATCH 2/4 usb: gadget: Tighten the dependency for DWC2 OTG support

The DWC2 OTG driver depends on an ARM-specific header file to compile, so make it depend on ARM.

---
Cc: Marek Vasut <[email protected]>

---
 drivers/usb/gadget/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/gadget/Kconfig +1 -0
index e845e46e0b7f..3a8ef45706aa 100644
@@ -105,6 +105,7 @@ config USB_GADGET_AT91
 
 config USB_GADGET_DWC2_OTG
 	bool "DesignWare USB2.0 HS OTG controller (gadget mode)"
+	depends on ARM
 	select USB_GADGET_DUALSPEED
 	help
 	  The Designware USB2.0 high-speed gadget controller
Signature · 1 line
2.43.0
author
#2 lore raw

PATCH 3/4 usb: host: xhci: Make U_BOOT_DRIVER entries unique

In reply to Tom Rini

All instances of the U_BOOT_DRIVER must use a unique name or they will lead to link time failures due to name space conflicts when both are present. Most of the XHCI drivers follow pattern of xhci_xxx in their name, but a few used "usb_xhci". Change these to follow the pattern of the rest of the XHCI glue drivers.

---
Cc: Marek Vasut <[email protected]>

---
 drivers/usb/host/xhci-brcm.c    | 2 +-
 drivers/usb/host/xhci-exynos5.c | 2 +-
 drivers/usb/host/xhci-generic.c | 2 +-
 drivers/usb/host/xhci-mtk.c     | 2 +-
 drivers/usb/host/xhci-mvebu.c   | 2 +-
 drivers/usb/host/xhci-rcar.c    | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
drivers/usb/host/xhci-brcm.c +1 -1
index 2ffad148dea6..595839fac3c9 100644
@@ -85,7 +85,7 @@ static const struct udevice_id xhci_brcm_ids[] = {
 	{ }
 };
 
-U_BOOT_DRIVER(usb_xhci) = {
+U_BOOT_DRIVER(xhci_brcm) = {
 	.name				= "xhci_brcm",
 	.id				= UCLASS_USB,
 	.probe				= xhci_brcm_probe,
drivers/usb/host/xhci-exynos5.c +1 -1
index 6a2d422c4b8e..9a7c0f29dc8f 100644
@@ -247,7 +247,7 @@ static const struct udevice_id xhci_usb_ids[] = {
 	{ }
 };
 
-U_BOOT_DRIVER(usb_xhci) = {
+U_BOOT_DRIVER(xhci_exynos) = {
 	.name	= "xhci_exynos",
 	.id	= UCLASS_USB,
 	.of_match = xhci_usb_ids,
drivers/usb/host/xhci-generic.c +1 -1
index 355d4883176d..8bb4e2774230 100644
@@ -61,7 +61,7 @@ static const struct udevice_id xhci_usb_ids[] = {
 	{ }
 };
 
-U_BOOT_DRIVER(usb_xhci) = {
+U_BOOT_DRIVER(xhci_generic) = {
 	.name	= "xhci_generic",
 	.id	= UCLASS_USB,
 	.of_match = xhci_usb_ids,
drivers/usb/host/xhci-mtk.c +1 -1
index 7e288f0575b6..ffe80c0bbdc6 100644
@@ -357,7 +357,7 @@ static const struct udevice_id xhci_mtk_ids[] = {
 	{ }
 };
 
-U_BOOT_DRIVER(usb_xhci) = {
+U_BOOT_DRIVER(xhci_mtk) = {
 	.name = "xhci-mtk",
 	.id = UCLASS_USB,
 	.of_match = xhci_mtk_ids,
drivers/usb/host/xhci-mvebu.c +1 -1
index 1338b1021c64..12dc61aee9db 100644
@@ -87,7 +87,7 @@ static const struct udevice_id xhci_usb_ids[] = {
 	{ }
 };
 
-U_BOOT_DRIVER(usb_xhci) = {
+U_BOOT_DRIVER(xhci_mvebu) = {
 	.name	= "xhci_mvebu",
 	.id	= UCLASS_USB,
 	.of_match = xhci_usb_ids,
drivers/usb/host/xhci-rcar.c +1 -1
index b72807053c42..95dfa2c3f874 100644
@@ -149,7 +149,7 @@ static const struct udevice_id xhci_rcar_ids[] = {
 	{ }
 };
 
-U_BOOT_DRIVER(usb_xhci) = {
+U_BOOT_DRIVER(xhci_rcar) = {
 	.name		= "xhci_rcar",
 	.id		= UCLASS_USB,
 	.probe		= xhci_rcar_probe,
Signature · 1 line
2.43.0
author
#3 lore raw

PATCH 4/4 usb: gadget: Tighten CI_UDC dependencies

In reply to Tom Rini

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.

---
Cc: Marek Vasut <[email protected]>

---
 drivers/usb/gadget/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/gadget/Kconfig +1 -0
index 3a8ef45706aa..882f082c9cdb 100644
@@ -148,6 +148,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
Signature · 1 line
2.43.0
author
#5 lore raw
Quoted 9 lines · Marek Vasut
Quoted 8 lines · Tom Rini

With this directory removed, remove the reference to it in the list of directories to traverse.

---
Cc: Peter Robinson <[email protected]>
Cc: Marek Vasut <[email protected]>

Quoted 5 lines
Quoted 2 lines

Marek, can you perhaps please fold this in to Peter's 3/3 on musb removals? Thanks.

Which patch/series do you refer to ?

Can you both maybe prepare a combined patch/series instead ?

This is a follow-up to
https://patchwork.ozlabs.org/bundle/trini/allyesconfig-prep/?series=462887&state=*
(I forgot to --in-reply-to this patch. oops) and yes I can v2 the series.

Signature · 1 line
Tom