[U-Boot] [PATCH 1/6] usb : musb : Add high speed field in usb_device structure

Remy Bohmer linux at bohmer.net
Thu Dec 18 09:08:22 CET 2008


Hello Michael,

> For mentor usb controller, it would still be necessary to record the speed of the device when it is found connected to a hub port. So the update of usb->speed would have to be done as below in 'usb_hub_port_connect_change' function. Would this be acceptable?
>
>  /* Allocate a new device struct for it */
>  usb = usb_alloc_new_device();
>  usb->speed = (portstatus & USB_PORT_STAT_LOW_SPEED) ? 1 : 0;
> +usb->speed = (portstatus & USB_PORT_STAT_HIGH_SPEED) ? 1 : 0;

Would this change break anything you are working on? Or do you have a
better suggestion?

Kind Regards,

Remy


More information about the U-Boot mailing list