On Wed, 29 Mar 2006, Peter.Chen wrote:

> > > If then,How about my rx/tx interrupt?They also will 
> > > call the same functions.
> > 
> > Which same functions?  Surely they won't call your ep->ops->queue() 
> > routine.
> I mean my rx/tx interrupt routine and ep->ops->queue() both will
> call readfifo(writefifo) or DMA,and i wonder when will
> call ep->ops->queue()?,and why at this time,the rx/tx interrupt
> will not be invoked?

If you want to prevent the rx/tx interrupt from being invoked while the 
readfifo, writefifo, or DMA routines are running, then your driver should 
disable interrupts.  Normally this is done by using spin_lock_irqsave(), 
but there are other ways to do it, such as local_irq_save().

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to