Re: Kingsun KS-959 USB IrDA dongle - release candidate for submission (try 1)

Samuel Ortiz <[email protected]>
Newsgroups gmane.linux.usb.devel,gmane.linux.irda.general
Message-ID <[email protected]>
On Fri, Jul 20, 2007 at 05:02:29PM -0700, Pete Zaitcev wrote:
> On Sat, 21 Jul 2007 02:21:55 +0300, Samuel Ortiz <[email protected]> wrote:
> 
> > > +/* Callback transmission routine */
> > > +static void ks959_speed_irq(struct urb *urb)
> > > +{
> > > +	/* unlink, shutdown, unplug, other nasties */
> > > +	if (urb->status != 0) {
> > > +		err("ks959_speed_irq: urb asynchronously failed - %d", urb->status);
> > 
> > Here, shouldn't we call unlink_urb() if depending on the status value
> > (in the -EINPROGRESS at least) ?
> 
> If a CPU is executing a callback, the URB is unlinked by definition.
Ok, that's what I wasn't sure about, if the callback was supposed to do
the unlink or not.

Cheers,
Samuel.

> So, I see no opportunity to invoke unlink_urb _here_ as you said.
> 
> -- Pete


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.