From: Mattijs Korpershoek <mkorpershoek@baylibre.com>
To: Miquel Raynal <miquel.raynal@bootlin.com>,
Marek Vasut <marek.vasut@gmail.com>,
Lukasz Majewski <lukma@denx.de>
Cc: u-boot@lists.denx.de,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Miquel Raynal <miquel.raynal@bootlin.com>
Subject: Re: [PATCH v3 1/3] cmd: Change the dependencies between CMD_BIND and USB_GADGET
Date: Wed, 18 Oct 2023 09:01:35 +0200 [thread overview]
Message-ID: <87h6mo1kj4.fsf@baylibre.com> (raw)
In-Reply-To: <20231010090304.49335-2-miquel.raynal@bootlin.com>
On mar., oct. 10, 2023 at 11:03, Miquel Raynal <miquel.raynal@bootlin.com> wrote:
> 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>
Tested that the bind command exists when building with:
configs/khadas-vim3_android_defconfig
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # on vim3
> ---
> cmd/Kconfig | 1 -
> drivers/usb/gadget/Kconfig | 1 +
> 2 files changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/cmd/Kconfig b/cmd/Kconfig
> index 43ca10f69cc..6cc3bf6c2d0 100644
> --- a/cmd/Kconfig
> +++ b/cmd/Kconfig
> @@ -996,7 +996,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 1cfe6022842..44f47a07207 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.
> --
> 2.34.1
next prev parent reply other threads:[~2023-10-18 7:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-10 9:03 [PATCH v3 0/3] Improve the experience with USB gadgets Miquel Raynal
2023-10-10 9:03 ` [PATCH v3 1/3] cmd: Change the dependencies between CMD_BIND and USB_GADGET Miquel Raynal
2023-10-18 7:01 ` Mattijs Korpershoek [this message]
2023-10-10 9:03 ` [PATCH v3 2/3] cmd: bind: Try to improve the (un)bind help Miquel Raynal
2023-10-10 9:03 ` [PATCH v3 3/3] usb: udc: Try to clarify an error message Miquel Raynal
2023-11-21 14:52 ` [PATCH v3 0/3] Improve the experience with USB gadgets Mattijs Korpershoek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h6mo1kj4.fsf@baylibre.com \
--to=mkorpershoek@baylibre.com \
--cc=lukma@denx.de \
--cc=marek.vasut@gmail.com \
--cc=miquel.raynal@bootlin.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox