From 3cb0b65b4e4a331225a400ce696c303693d2d533 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 10 Jul 2007 18:22:09 +0000 Subject: [PATCH] Clear gpct mite interrupts. --- comedi/drivers/ni_mio_common.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index 7536bfc3..63ec83fd 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -785,6 +785,14 @@ static void handle_gpct_interrupt(comedi_device *dev, unsigned short counter_ind return; } gpct_mite_status = readl(mite_chan->mite->mite_io_addr + MITE_CHSR(mite_chan->channel)); + if(gpct_mite_status & CHSR_LINKC) + { + writel(CHOR_CLRLC, devpriv->mite->mite_io_addr + MITE_CHOR(mite_chan->channel)); + } + if(gpct_mite_status & CHSR_DONE) + { + writel(CHOR_CLRDONE, devpriv->mite->mite_io_addr + MITE_CHOR(mite_chan->channel)); + } mite_sync_input_dma(mite_chan, s->async); comedi_spin_unlock_irqrestore(&devpriv->mite_channel_lock, flags); -- 2.26.2