Skip to contentSkip to conversation

usb: gadget: spl: Add missing dependency for SPL_USB_GADGET

PATCH In review Tom Rini 2 participants 2 messages Oct 3, 2025 – Oct 6, 2025 USB

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 usb: gadget: spl: Add missing dependency for SPL_USB_GADGET

It makes no sense to ask about nor enable SPL_USB_GADGET without SPL_FRAMEWORK being enabled. Attempting to do so leads to Kconfig noting dependency issues. Add the missing dependency.

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

---
 drivers/usb/gadget/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/gadget/Kconfig +1 -0
index 882f082c9cdb..056eff4d942e 100644
@@ -39,6 +39,7 @@ menuconfig USB_GADGET
 
 config SPL_USB_GADGET
 	bool "USB Gadget Support in SPL"
+	depends on SPL_FRAMEWORK
 	help
 	  Enable USB Gadget API which allows to enable USB device functions
 	  in SPL.
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw

Hi Tom,

Thank you for the patch.

Quoted 5 lines · Tom Rini

It makes no sense to ask about nor enable SPL_USB_GADGET without SPL_FRAMEWORK being enabled. Attempting to do so leads to Kconfig noting dependency issues. Add the missing dependency.

Quoted 21 lines

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

---
 drivers/usb/gadget/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/gadget/Kconfig +1 -0
index 882f082c9cdb..056eff4d942e 100644
@@ -39,6 +39,7 @@ menuconfig USB_GADGET
 
 config SPL_USB_GADGET
 	bool "USB Gadget Support in SPL"
+	depends on SPL_FRAMEWORK
 	help
 	  Enable USB Gadget API which allows to enable USB device functions
 	  in SPL.
Signature · 1 line
2.43.0