Dan Streetman wrote:
> After the interrupt queueing was added, I don't think the old way of 
> resetting interrupts will work anymore.  This patch changes it to simply 
> do a full unlink and resubmission automatically.  Note that since 
> usb_hcd_giveback_urb() is never called for a resubmitting interrupt URB, 
> that means whatever gets released in usb_hcd_giveback_urb() won't get 
> released for that URB.  The only way to work around that is call 
> usb_hcd_giveback_urb after the user unlinks in their completion handler, 
> which will call the completion handler again with -ECONNRESET 
> status...which wouldn't be all that bad, but the drivers have to expect 
> it.

Can't you just giveback() in the first place if you know it's
already been unlinked?

There are some annoying corner cases going that route, but with
any luck they'd have a very short lifespan since:


> Hopefully the interrupt resubmission will go away soon...

I'll send around an updated version of my "remove automagic" patch
against 2.5.43 soonish.  That'll help test things.

- Dave




-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to