diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2023-10-10 11:03:02 +0200 |
---|---|---|
committer | Mattijs Korpershoek <mkorpershoek@baylibre.com> | 2023-11-21 15:48:38 +0100 |
commit | 9b63fcaec664780545318d923063bedd898a629c (patch) | |
tree | 700a0443cf4242d2fe5c68bc17a117afbf3a352c | |
parent | 1041ee64eb18f7a3af30085765ced149cb4dc7cf (diff) | |
download | u-boot-9b63fcaec664780545318d923063bedd898a629c.zip u-boot-9b63fcaec664780545318d923063bedd898a629c.tar.gz u-boot-9b63fcaec664780545318d923063bedd898a629c.tar.bz2 |
cmd: Change the dependencies between CMD_BIND and USB_GADGET
Today CMD_BIND defaults to 'y' when USB_ETHER is enabled. In practice,
CMD_BIND should default to 'y' when any USB gadget is enabled not only
USB_ETHER. Let's invert the logic of the dependency and use the weak
'imply' keyword to enforce this.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # on vim3
Link: https://lore.kernel.org/r/20231010090304.49335-2-miquel.raynal@bootlin.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
-rw-r--r-- | cmd/Kconfig | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/Kconfig | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig index 6f63615..859e305 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -977,7 +977,6 @@ config CMD_BCB config CMD_BIND bool "bind/unbind - Bind or unbind a device to/from a driver" depends on DM - default y if USB_ETHER help Bind or unbind a device to/from a driver from the command line. This is useful in situations where a device may be handled by several diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 4eccc5e..c72a804 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig @@ -17,6 +17,7 @@ menuconfig USB_GADGET bool "USB Gadget Support" depends on DM select DM_USB + imply CMD_BIND help USB is a master/slave protocol, organized with one master host (such as a PC) controlling up to 127 peripheral devices. |