diff options
author | Hans de Goede <hdegoede@redhat.com> | 2016-07-03 20:22:05 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2016-07-05 14:14:11 +0200 |
commit | e6e188f5623e3db7fcba785f4246d16425dd2104 (patch) | |
tree | 88f6e27f6879e9f487984fa02efad750bb274cf3 /lib | |
parent | 2138fd6d5d358bcfef6631300763c16a70f2af3d (diff) | |
download | u-boot-imx-e6e188f5623e3db7fcba785f4246d16425dd2104.zip u-boot-imx-e6e188f5623e3db7fcba785f4246d16425dd2104.tar.gz u-boot-imx-e6e188f5623e3db7fcba785f4246d16425dd2104.tar.bz2 |
usb: dm: Make "usb info" use usb_for_each_root_dev()
The old dm "usb info" implementation has several issues:
1) NULL pointer deref when a bus has no children
2) Not showing usb devices on busses without an emulated root-hub (otg host)
3) Attempting to show devices on inactive busses
4) "usb info" Would cause some hosts to get re-probed something which only
"usb reset" should do
TL;DR: proper iterating over usb bus root devs is hard, use the helper
for it.
Reported-by: Bernhard Nortmann <bernhard.nortmann@web.de>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions