[U-Boot] [PATCH v2 0/5] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller

Jean-Jacques Hiblot jjhiblot at ti.com
Mon Jun 18 13:56:47 UTC 2018


This series implements 2 fixes to be able to use USB Ethernet gadget with the dwc3
driver.
It also adds new commands to bind/unbind a device to/from a driver and
update the 'dm tree' command to make it easier to use those new commands.
The bind/unbind commands can be used to bind the DWC3 USB gadget to the
usb_ether driver from the command line instead of relying on platform code.

Changes in v2:
- Make the bind/unbind command generic, not specific to usb device.
- Update the API to be able to bind/unbind based on DTS node path
- Add a Kconfig option to select the bind/unbind commands

Jean-Jacques Hiblot (5):
  usb: gadget: Add bcdDevice for the DWC3 USB Gadget Controller
  net: eth-uclass: Fix for DM USB ethernet support
  cmd: Add bind/unbind commands to bind a device to a driver from the
    command line
  drivers: uclass: Add dev_get_uclass_index() to get the uclass/index of
    a device
  dm: print the index of the device when dumping the dm tree

 cmd/Kconfig                       |   9 ++
 cmd/Makefile                      |   1 +
 cmd/bind.c                        | 256 ++++++++++++++++++++++++++++++++++++++
 drivers/core/dump.c               |  16 ++-
 drivers/core/uclass.c             |  21 ++++
 drivers/usb/gadget/gadget_chips.h |   2 +
 include/dm/uclass-internal.h      |  11 ++
 net/eth-uclass.c                  |   3 +-
 8 files changed, 312 insertions(+), 7 deletions(-)
 create mode 100644 cmd/bind.c

-- 
2.7.4



More information about the U-Boot mailing list