Re: uvcvideo causes ehci_hcd to halt

From: Laurent Pinchart
Date: Wed Oct 21 2009 - 13:26:56 EST


On Wednesday 21 October 2009 17:07:51 Alan Stern wrote:
> On Wed, 21 Oct 2009, [UTF-8] Ozan Ã?aÄ?layan wrote:
> > Nope it didn't help. Here's the DEBUG enabled dmesg output:
>
> ...
>
> > [ 420.737748] usb 1-5: link qh1024-0001/f6ffe280 start 1 [1/0 us]
>
> The periodic schedule was enabled here.
>
> > [ 420.737891] usb 1-5: unlink qh1024-0001/f6ffe280 start 1 [1/0 us]
>
> And it was disabled here. Do you have any idea why the uvcvideo driver
> submits an interrupt URB and then cancels it 150 us later? The same
> thing shows up in the usbmon traces.

Probably because hal opens the device to query its capabilities and closes it
right after. The driver submits the interrupt URB when the first user opens
the device and cancels it when the last user closes the device.

--
Regards,

Laurent Pinchart
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/