diff options
author | Suneel Garapati <suneelglinux@gmail.com> | 2017-10-23 17:28:40 -0700 |
---|---|---|
committer | Marek Vasut <marek.vasut+renesas@gmail.com> | 2017-11-26 02:22:36 +0100 |
commit | abd7cedb19ab7979467734b3933a39879bd8935a (patch) | |
tree | d05f280eb69d50e7f19412ad28da77fefc53ce49 /cmd/date.c | |
parent | 93a51d301ad051ec6f8c6016862c7719b8b434d3 (diff) |
cmd: usb: ignore blk, emulation devices in usb tree/info display
Usb tree/info commands iterate over all usb uclass devices recursively.
Blk uclass devices based on struct blk_desc are created for mass storage
device, treating them as usb uclass devices based on struct usb_device
and referencing usb config interface descriptors cause crash.
To fix, ignore blk and usb_emul uclass devices in usb_show_info
and usb_tree_graph. Also avoid addition of preamble for blk uclass
child devices, otherwise tree dump gets messed up.
Signed-off-by: Suneel Garapati <suneelglinux@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/date.c')
0 files changed, 0 insertions, 0 deletions