
18 Dec
2008
18 Dec
'08
9:08 a.m.
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