]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: Change the dependencies between CMD_BIND and USB_GADGET
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 10 Oct 2023 09:03:02 +0000 (11:03 +0200)
committerMattijs Korpershoek <mkorpershoek@baylibre.com>
Tue, 21 Nov 2023 14:48:38 +0000 (15:48 +0100)
commit9b63fcaec664780545318d923063bedd898a629c
tree700a0443cf4242d2fe5c68bc17a117afbf3a352c
parent1041ee64eb18f7a3af30085765ced149cb4dc7cf
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>
cmd/Kconfig
drivers/usb/gadget/Kconfig