From c2259f2e5d69e4ed9000dc7e6b9459881b543423 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 17 Feb 2005 23:37:58 +0000 Subject: [PATCH] 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! --- comedi/drivers/amplc_pc236.c | 2 +- comedi/drivers/comedi_parport.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.26.2