[U-Boot] [PATCH] USB: Change "usb tree" cmd to print 480MBit upon highspeed connection

Mike Frysinger vapier at gentoo.org
Wed Jan 21 21:22:56 CET 2009


On Wednesday 21 January 2009 11:11:47 Stefan Roese wrote:
> Signed-off-by: Stefan Roese <sr at denx.de>
> ---
>  common/cmd_usb.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/common/cmd_usb.c b/common/cmd_usb.c
> index 9e55c7c..773d1b5 100644
> --- a/common/cmd_usb.c
> +++ b/common/cmd_usb.c
> @@ -310,6 +310,7 @@ void usb_show_tree_graph(struct usb_device *dev, char
> *pre) pre[index] = 0;
>  	printf(" %s (%s, %dmA)\n", usb_get_class_desc(
>  					dev->config.if_desc[0].bInterfaceClass),
> +					dev->speed == 2 ? "480MBit/s" :
>  					dev->speed ? "1.5MBit/s" : "12MBit/s",
>  					dev->config.MaxPower * 2);
>  	if (strlen(dev->mf) || strlen(dev->prod) || strlen(dev->serial))

we had a similar patch cooking locally for this

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090121/760a1c85/attachment.pgp 


More information about the U-Boot mailing list