From: Frank Mori Hess Date: Thu, 17 Feb 2005 23:37:58 +0000 (+0000) Subject: patch from Ian Abbott : X-Git-Tag: r0_7_70~45 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c2259f2e5d69e4ed9000dc7e6b9459881b543423;p=comedi.git patch from Ian Abbott : 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! --- diff --git a/comedi/drivers/amplc_pc236.c b/comedi/drivers/amplc_pc236.c index 41f6bff9..a5a8e657 100644 --- a/comedi/drivers/amplc_pc236.c +++ b/comedi/drivers/amplc_pc236.c @@ -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); diff --git a/comedi/drivers/comedi_parport.c b/comedi/drivers/comedi_parport.c index 5e61c55f..07f64fad 100644 --- a/comedi/drivers/comedi_parport.c +++ b/comedi/drivers/comedi_parport.c @@ -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;