Re: [PATCH] cmd: Enable BIND by default if we have USB_ETHER

2023-08-04 Thread Miquel Raynal
Hi Tom,

tr...@konsulko.com wrote on Fri,  4 Aug 2023 12:06:21 -0400:

> 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 
> ---
> Cc: Marek Vasut 
> Cc: Miquel Raynal 

Reviewed-by: Miquel Raynal 

Thanks,
Miquèl


[PATCH] cmd: Enable BIND by default if we have USB_ETHER

2023-08-04 Thread Tom Rini
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 
---
Cc: Marek Vasut 
Cc: Miquel Raynal 
---
 cmd/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmd/Kconfig b/cmd/Kconfig
index 2d6e5f993f04..7f65e3187a66 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -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
-- 
2.34.1