Your argument is weak.  There's no law saying an HC driver has to be in an
IRQ handler when it calls giveback_urb.  The only requirement is that the


from usb_hcd_giveback_urb()
 * @urb: urb being returned to the USB device driver.
 * @regs: pt_regs, passed down to the URB completion handler
 * Context: in_interrupt()

If you wish to drop that requirement you'll have to audit all drivers with
respect to spinlocks.

Notice that in_interrupt() != in_irq(), though both imply "can't sleep".


The requirement is actually more like "irqs blocked", and I forget whether
that implies "in_interrupt()".






------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to