[U-Boot] [PATCH v7] cmd: usb: ignore blk, emulation devices in usb tree/info display
Marek Vasut
marex at denx.de
Sun Oct 29 12:02:05 UTC 2017
On 10/24/2017 02:28 AM, Suneel Garapati wrote:
> 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 at gmail.com>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Tested-by: Bin Meng <bmeng.cn at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
Applied, thanks.
--
Best regards,
Marek Vasut
More information about the U-Boot
mailing list