]> git.baikalelectronics.ru Git - uboot.git/commitdiff
usb: USB hubs require host mode
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 25 Jan 2023 18:40:15 +0000 (19:40 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 10 Mar 2023 16:31:31 +0000 (17:31 +0100)
USB hubs run in host mode not in gadget mode. Hence, compiling usb_hub.c
should not be selected by CONFIG_USB_GADGET.

Suggested-by: Marek Vasut <marex@denx.de>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Marek Vasut <marex@denx.de>
common/Makefile

index 252e9656dfd8f1f62e1b406a73b084cb7cb8b1a8..a50302d8b52bfe7558237cb0ce053f6772c618d3 100644 (file)
@@ -24,7 +24,7 @@ obj-$(CONFIG_CMD_MII) += miiphyutil.o
 obj-$(CONFIG_PHYLIB) += miiphyutil.o
 
 obj-$(CONFIG_USB_HOST) += usb.o usb_hub.o
-obj-$(CONFIG_USB_GADGET) += usb.o usb_hub.o
+obj-$(CONFIG_USB_GADGET) += usb.o
 obj-$(CONFIG_USB_STORAGE) += usb_storage.o
 obj-$(CONFIG_USB_ONBOARD_HUB) += usb_onboard_hub.o