Re: [PATCH 2/2] [media] uvcvideo: Kill video URBs on disconnect

2017-04-22 Thread Daniel Axtens
Hi Laurent, Apologies for takig so long to get back to you. > I assume that the error message is caused by a race between disconnection and > URB handling. When the device is disconnected I believe the USB core will > cancel all in-progress URBs (I'm not very familiar with that part of the USB

Re: [PATCH 2/2] [media] uvcvideo: Kill video URBs on disconnect

2017-04-17 Thread Laurent Pinchart
Hi Daniel, Thank you for the patch. On Monday 17 Apr 2017 18:52:40 Daniel Axtens wrote: > When an in-use webcam is disconnected, I noticed the following > messages: > > uvcvideo: Failed to resubmit video URB (-19). > > -19 is -ENODEV, which does make sense given that the device has >

[PATCH 2/2] [media] uvcvideo: Kill video URBs on disconnect

2017-04-17 Thread Daniel Axtens
When an in-use webcam is disconnected, I noticed the following messages: uvcvideo: Failed to resubmit video URB (-19). -19 is -ENODEV, which does make sense given that the device has disappeared. We could put a case for -ENODEV like we have with -ENOENT, -ECONNRESET and -ESHUTDOWN, but the