[SPAM] Re: [PATCH] cmd: usb: Prevent reset in usb tree/info command
Xavier Drudis Ferran
xdrudis at tinet.cat
Tue Jun 13 18:04:02 CEST 2023
El Tue, Jun 13, 2023 at 03:58:22PM +0100, Simon Glass deia:
>
> Yes that's right. So 'usb info' should ignore UCLASS_BOOTDEV devices.
That's a possibility, yes. It should work until someone adds another
device there for some other purpose.
> That is better than checking for the NULL pointer.
>
Why? What's wrong about checking for null ?
Or maybe checking for both not null and not UCLASS_BOOTDEV ?
Not that I care too much, just to understand your reasoning.
Or can we check for recursible devices somehow ?
Maybe flag them or something ?
Why is better to state all devices are recursible except some UCLASSes
(meaning they can have stuff that needs listed in usb info - or
likewise usb tree -) instead of stating that some closed set are
recursible ?
More information about the U-Boot
mailing list