Hi > So HelenOS found two UHCI hc's and two root hubs. uhcirh then attempted > to gain control of the hubs. Then I see a series of 6 warnings of the > following kind: > > [uhci] WARN: Endpoint 0:0 both was left behind, removing
These are harmless. This warning indicates there was a registered endpoint present at the time the address was released. normally it should not happen, the only case when it could legally happen is in error handling of usb_hc_new_device_wrapper (lines 311-331 uspace/lib/usbdev/src/hub.c) > [uhcirh] WARN: usb_hc_new_device_wrapper: Failed to unregister default pipe This is related to the above warning: jumping to "leave_release_default_address:" released address 0 and also unregistered endpoint 0, producing the first warning, the attempt to unregister default pipe fails because that pipe pointed to device with address 0 and that one was already unregistered. > > Eventually, the last line of output is: > > [uhcirh] ERROR: Port (0x00000000000647b0 - 0): Faile(-301) to add > device: Operation stalled. This is a generic error displayed when adding of a new device fails. > > Any clues? What should be the next debugging step? none of the above mentioned warnings errors/indicate any serious problem with the USB stack (there would be more errors if communication failed). The two warnings point to failure in usb_hc_new_device_wrapper that jumps to "leave_release_default_address". The first place is default pipe registration, this one is OK as the first warning indicates that the pipe(endpoint) has been registered. If the uhcirh debug level is at least debug, you would see some messages about port being enabled (I think debug level goes to logfile by default), called by before the third place that could jump to "leave_release_default_address". All this points me to failure in gettimeofday() (uspace/lib/usbdev/src/hub.c: 230) hope this helps jan > > Jakub > > _______________________________________________ > HelenOS-devel mailing list > [email protected] > http://lists.modry.cz/cgi-bin/listinfo/helenos-devel _______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/cgi-bin/listinfo/helenos-devel
