Re: Which error code to return when a usb camera gets unplugged

2011-06-06 Thread Andy Walls
On Mon, 2011-06-06 at 13:59 -0400, Devin Heitmueller wrote: > On Mon, Jun 6, 2011 at 1:56 PM, Hans de Goede wrote: > > Hi, > > > > While working on my cleanup / v4l2 compliance series for > > the pwc driver I've noticed that the pwc and gspca drivers > > are doing different things wrt what error t

Re: Which error code to return when a usb camera gets unplugged

2011-06-06 Thread Devin Heitmueller
On Mon, Jun 6, 2011 at 1:56 PM, Hans de Goede wrote: > Hi, > > While working on my cleanup / v4l2 compliance series for > the pwc driver I've noticed that the pwc and gspca drivers > are doing different things wrt what error they return to > an app is using the device while it gets unplugged. > gs

Which error code to return when a usb camera gets unplugged

2011-06-06 Thread Hans de Goede
Hi, While working on my cleanup / v4l2 compliance series for the pwc driver I've noticed that the pwc and gspca drivers are doing different things wrt what error they return to an app is using the device while it gets unplugged. gspca returns -ENODEV, where as pwc returns -EPIPE. Both make some