From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller
Date: Sat, 11 Aug 2018 14:04:38 +0200 [thread overview]
Message-ID: <20180811140438.1d015ef0@jawa> (raw)
In-Reply-To: <1533824266-10947-1-git-send-email-jjhiblot@ti.com>
Hi Jean-Jacques,
> 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 v4:
> - Fixed compiler warning: "cmd/bind.c:236:5: warning: ‘ret’ may be
> used uninitialized in this function [-Wmaybe-uninitialized]"
With the v3 Michal Simek asked (I was out of the office) if we shall
wait for sandbox tests or not?
Is there any follow up plan for adding tests to sandbox?
>
> Changes in v3:
> - update commit log
> - fixed problem with the function name
> - update commit log
> - new commit
> - new
> - 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
>
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180811/122f5d89/attachment.sig>
next prev parent reply other threads:[~2018-08-11 12:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-09 14:17 [U-Boot] [PATCH v4 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller Jean-Jacques Hiblot
2018-08-09 14:17 ` [U-Boot] [PATCH v4 1/7] usb: gadget: Add bcdDevice for the DWC3 USB Gadget Controller Jean-Jacques Hiblot
2018-08-09 14:17 ` [U-Boot] [PATCH v4 2/7] net: eth-uclass: Fix for DM USB ethernet support Jean-Jacques Hiblot
2018-08-09 14:17 ` [U-Boot] [PATCH v4 3/7] uclass: Add dev_get_uclass_index() to get the uclass/index of a device Jean-Jacques Hiblot
2018-08-17 12:48 ` Simon Glass
2018-08-09 14:17 ` [U-Boot] [PATCH v4 4/7] dm: print the index of the device when dumping the dm tree Jean-Jacques Hiblot
2018-08-09 14:17 ` [U-Boot] [PATCH v4 5/7] dm: convert device_get_global_by_of_offset() to device_get_global_by_ofnode() Jean-Jacques Hiblot
2018-08-17 12:48 ` Simon Glass
2018-08-09 14:17 ` [U-Boot] [PATCH v4 6/7] device: expose the functions used to remove and unbind children of a device Jean-Jacques Hiblot
2018-08-17 12:48 ` Simon Glass
2018-08-09 14:17 ` [U-Boot] [PATCH v4 7/7] cmd: Add bind/unbind commands to bind a device to a driver from the command line Jean-Jacques Hiblot
2018-08-17 12:48 ` Simon Glass
2018-08-20 21:44 ` Stephen Warren
2018-08-11 12:04 ` Lukasz Majewski [this message]
2018-08-13 7:26 ` [U-Boot] [PATCH v4 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller Jean-Jacques Hiblot
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=20180811140438.1d015ef0@jawa \
--to=lukma@denx.de \
--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