mbox series

[v3,0/3] Improve the experience with USB gadgets

Message ID 20231010090304.49335-1-miquel.raynal@bootlin.com
Headers show
Series Improve the experience with USB gadgets | expand

Message

Miquel Raynal Oct. 10, 2023, 9:03 a.m. UTC
Try to ease the use of USB gadgets for people not fully aware of all the
terms and constraints. With more helpful error messages a little bit of
guidance anyone should be able to adapt to the bind/unbind game that is
now necessary with USB gadgets.

The idea is to eventually get proper USB composite gadget support, but
that is a longer term goal.

Changes in v3:
* First patch is new.
* Collected the tags received.
* Imply CMD_DM from CMD_BIND.

Miquel Raynal (3):
  cmd: Change the dependencies between CMD_BIND and USB_GADGET
  cmd: bind: Try to improve the (un)bind help
  usb: udc: Try to clarify an error message

 cmd/Kconfig                       |  2 +-
 cmd/bind.c                        |  4 ++++
 drivers/usb/gadget/Kconfig        |  1 +
 drivers/usb/gadget/udc/udc-core.c | 13 ++++++++++++-
 4 files changed, 18 insertions(+), 2 deletions(-)

Comments

Mattijs Korpershoek Nov. 21, 2023, 2:52 p.m. UTC | #1
Hi,

On Tue, 10 Oct 2023 11:03:01 +0200, Miquel Raynal wrote:
> Try to ease the use of USB gadgets for people not fully aware of all the
> terms and constraints. With more helpful error messages a little bit of
> guidance anyone should be able to adapt to the bind/unbind game that is
> now necessary with USB gadgets.
> 
> The idea is to eventually get proper USB composite gadget support, but
> that is a longer term goal.
> 
> [...]

Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-dfu (u-boot-dfu-next)

[1/3] cmd: Change the dependencies between CMD_BIND and USB_GADGET
      https://source.denx.de/u-boot/custodians/u-boot-dfu/-/commit/9b63fcaec664780545318d923063bedd898a629c
[2/3] cmd: bind: Try to improve the (un)bind help
      https://source.denx.de/u-boot/custodians/u-boot-dfu/-/commit/249a75d8e82b422639beedca3d7d945cd78869ba
[3/3] usb: udc: Try to clarify an error message
      https://source.denx.de/u-boot/custodians/u-boot-dfu/-/commit/8a0d07807abb5370fe879321c7f1d22fdda3255f

--
Mattijs