cmd: Enable BIND by default if we have USB_ETHER
authorTom Rini <trini@konsulko.com>
Fri, 4 Aug 2023 16:06:21 +0000 (12:06 -0400)
committerMarek Vasut <marex@denx.de>
Sat, 5 Aug 2023 04:05:06 +0000 (06:05 +0200)
The nature of the network stack means that if we are going to use the
gadget mode USB network driver there's no easy path to implicitly
bind/unbind the driver. Enable the "bind" command by default here so
that we can bind/unbind this as needed.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
cmd/Kconfig

index 2d6e5f9..7f65e31 100644 (file)
@@ -986,6 +986,7 @@ 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