patch from Ian Abbott <abbotti@mev.co.uk>:
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 17 Feb 2005 23:37:58 +0000 (23:37 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 17 Feb 2005 23:37:58 +0000 (23:37 +0000)
This patch sets the COMEDI_CB_BLOCK event in the interrupt routines of
the comedi_parport and amplc_pc236 drivers, as whatever is monitoring
the interrupts probably wants to know about them as soon as possible!

comedi/drivers/amplc_pc236.c
comedi/drivers/comedi_parport.c

index 41f6bff9e015bddf617d5d5d81812d739c949aab..a5a8e65761a3cd6b5bcdfcf2e461a68c4480ca19 100644 (file)
@@ -545,7 +545,7 @@ static irqreturn_t pc236_interrupt(int irq,void *d,struct pt_regs *regs)
                return IRQ_RETVAL(retval);
 
        comedi_buf_put(s->async,0);
-       s->async->events |= COMEDI_CB_EOS;
+       s->async->events |= COMEDI_CB_BLOCK | COMEDI_CB_EOS;
 
        comedi_event(dev,s,s->async->events);
        return IRQ_RETVAL(retval);
index 5e61c55f92cb714c0f30c972158183f4526cc11d..07f64fad94e17cdefc1b75e38505f98a7762a1b4 100644 (file)
@@ -275,7 +275,7 @@ static irqreturn_t parport_interrupt(int irq,void *d,struct pt_regs *regs)
        }
 
        comedi_buf_put( s->async, 0 );
-       s->async->events |= COMEDI_CB_EOS;
+       s->async->events |= COMEDI_CB_BLOCK | COMEDI_CB_EOS;
 
        comedi_event(dev,s,s->async->events);
        return IRQ_HANDLED;