All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v3 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller
@ 2018-06-22 12:25 Jean-Jacques Hiblot
  2018-06-22 12:25 ` [U-Boot] [PATCH v3 1/7] usb: gadget: Add bcdDevice for the DWC3 USB Gadget Controller Jean-Jacques Hiblot
                   ` (7 more replies)
  0 siblings, 8 replies; 39+ messages in thread
From: Jean-Jacques Hiblot @ 2018-06-22 12:25 UTC (permalink / raw)
  To: u-boot


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 v3:
- update some commit logs
- factorize code based on comments from ML
- remove the devices before unbinding them
- use device_find_global_by_ofnode() to get a device by its node.

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 (7):
  usb: gadget: Add bcdDevice for the DWC3 USB Gadget Controller
  net: eth-uclass: Fix for DM USB ethernet support
  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
  dm: convert device_get_global_by_of_offset() to
    device_get_global_by_ofnode()
  device: expose the functions used to remove and unbind children of a
    device
  cmd: Add bind/unbind commands to bind a device to a driver from the
    command line

 arch/arm/mach-rockchip/rk3188-board-spl.c |   2 +-
 arch/arm/mach-rockchip/rk3288-board-spl.c |   2 +-
 arch/sandbox/dts/test.dts                 |  11 ++
 cmd/Kconfig                               |   9 ++
 cmd/Makefile                              |   1 +
 cmd/bind.c                                | 255 ++++++++++++++++++++++++++++++
 configs/sandbox_defconfig                 |   1 +
 drivers/core/device-remove.c              |  30 ++--
 drivers/core/device.c                     |  19 ++-
 drivers/core/dump.c                       |  16 +-
 drivers/core/uclass.c                     |  21 +++
 drivers/usb/gadget/gadget_chips.h         |   2 +
 include/dm/device-internal.h              |  38 +++++
 include/dm/device.h                       |  23 ++-
 include/dm/uclass-internal.h              |  11 ++
 net/eth-uclass.c                          |   3 +-
 test/py/tests/test_bind.py                | 178 +++++++++++++++++++++
 17 files changed, 584 insertions(+), 38 deletions(-)
 create mode 100644 cmd/bind.c
 create mode 100644 test/py/tests/test_bind.py

-- 
2.7.4

^ permalink raw reply	[flat|nested] 39+ messages in thread

end of thread, other threads:[~2018-08-09 14:21 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-22 12:25 [U-Boot] [PATCH v3 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller Jean-Jacques Hiblot
2018-06-22 12:25 ` [U-Boot] [PATCH v3 1/7] usb: gadget: Add bcdDevice for the DWC3 USB Gadget Controller Jean-Jacques Hiblot
2018-06-22 12:25 ` [U-Boot] [PATCH v3 2/7] net: eth-uclass: Fix for DM USB ethernet support Jean-Jacques Hiblot
2018-06-22 12:25 ` [U-Boot] [PATCH v3 3/7] uclass: Add dev_get_uclass_index() to get the uclass/index of a device Jean-Jacques Hiblot
2018-06-30  4:19   ` Simon Glass
2018-07-04 13:10     ` Jean-Jacques Hiblot
2018-06-22 12:25 ` [U-Boot] [PATCH v3 4/7] dm: print the index of the device when dumping the dm tree Jean-Jacques Hiblot
2018-06-22 12:25 ` [U-Boot] [PATCH v3 5/7] dm: convert device_get_global_by_of_offset() to device_get_global_by_ofnode() Jean-Jacques Hiblot
2018-06-30  4:19   ` Simon Glass
2018-06-22 12:25 ` [U-Boot] [PATCH v3 6/7] device: expose the functions used to remove and unbind children of a device Jean-Jacques Hiblot
2018-06-30  4:19   ` Simon Glass
2018-06-22 12:25 ` [U-Boot] [PATCH v3 7/7] cmd: Add bind/unbind commands to bind a device to a driver from the command line Jean-Jacques Hiblot
2018-06-27 14:13   ` Michal Simek
2018-06-30  4:19     ` Simon Glass
2018-07-09  6:19       ` Michal Simek
2018-07-09 14:43         ` Tom Rini
2018-07-09 16:59           ` Joe Hershberger
2018-07-10 16:40             ` Tom Rini
2018-07-11  5:57               ` Michal Simek
2018-07-11 12:46                 ` Tom Rini
2018-07-11 13:31                   ` Michal Simek
2018-07-11 13:40                     ` Tom Rini
2018-07-11 20:13                       ` Simon Glass
2018-07-16  8:33                         ` Michal Simek
2018-07-17  3:44                           ` Simon Glass
2018-07-20 12:05                             ` Michal Simek
2018-07-11 13:57   ` Jagan Teki
2018-07-11 20:59   ` Eugeniu Rosca
2018-08-08  6:35 ` [U-Boot] [PATCH v3 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller Michal Simek
2018-08-08  9:17   ` Eugeniu Rosca
2018-08-08  9:58     ` Michal Simek
2018-08-08 10:26       ` Eugeniu Rosca
2018-08-08 11:36     ` Jean-Jacques Hiblot
2018-08-08 13:08       ` Eugeniu Rosca
2018-08-08 16:17         ` Jean-Jacques Hiblot
2018-08-08 16:44           ` Eugeniu Rosca
2018-08-08 16:54             ` Tom Rini
2018-08-08 18:29               ` Eugeniu Rosca
2018-08-09 14:21               ` Jean-Jacques Hiblot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.