RE: [PATCH V2 1/2] usb: gadget/uvc: Port UVC webcam gadget to use videobuf2 framework

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alan and Laurent,

> -----Original Message-----
> From: Alan Stern [mailto:stern@xxxxxxxxxxxxxxxxxxx]
> Sent: Thursday, August 09, 2012 7:20 AM
> To: Laurent Pinchart
> Cc: Bhupesh SHARMA; linux-usb@xxxxxxxxxxxxxxx; balbi@xxxxxx
> Subject: Re: [PATCH V2 1/2] usb: gadget/uvc: Port UVC webcam gadget to
> use videobuf2 framework
> 
> On Thu, 9 Aug 2012, Laurent Pinchart wrote:
> 
> > Hi Alan,
> >
> > On Wednesday 08 August 2012 21:31:12 Alan Stern wrote:
> > > On Wed, 8 Aug 2012, Laurent Pinchart wrote:
> > > > I guess it depends on the usb_ep_dequeue() API. The function
> documentation
> > > > doesn't clearly state whether calling it with an already
> dequeuing request
> > > > is valid (in which case it should return an error, possibly print
> a debug
> > > > message, but not a warning/error message) or not (in which case
> it can be
> > > > very vocal about it, and even WARN_ON()).
> > >
> > > It is valid.  It pretty much has to be, because we need to handle
> the
> > > possibility that two threads might try to cancel the same request
> at
> > > the same time.
> >
> > In that case we should fix the UDC drivers to be less vocal when
> > usb_ep_dequeue() is called for a non-queued request. Bhupesh, would
> you like
> > to send patches for that ?
> 
> That's right.  Trying to dequeue a non-queued request should return
> -EINVAL or something similar, but it shouldn't produce any log
> messages.
> 

Got your point. I will try to send patches for UDC drivers to return -EINVAL
instead of outputting msgs using WARN_ON, dev_warn, dev_err like constructs in this
case.

Regards,
Bhupesh
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux