summaryrefslogtreecommitdiff
path: root/wctdm.c
diff options
context:
space:
mode:
authormattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-01-23 21:28:14 +0000
committermattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-01-23 21:28:14 +0000
commit1d8f9e7e5393d5cfd77b2f81f85c1ae88d5583c2 (patch)
tree5f17607662838bada7f7e891595a782428b1188a /wctdm.c
parent412656572604454581bf1f6599d68f686543e57c (diff)
Make sure we don't clear the interrupt before we might have received it in
shared interrupt line scenarios. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1936 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wctdm.c')
-rw-r--r--wctdm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wctdm.c b/wctdm.c
index 1e7540a..2e87897 100644
--- a/wctdm.c
+++ b/wctdm.c
@@ -1032,7 +1032,6 @@ ZAP_IRQ_HANDLER(wctdm_interrupt)
int mode;
ints = inb(wc->ioaddr + WC_INTSTAT);
- outb(ints, wc->ioaddr + WC_INTSTAT);
if (!ints)
#ifdef LINUX26
@@ -1041,6 +1040,8 @@ ZAP_IRQ_HANDLER(wctdm_interrupt)
return;
#endif
+ outb(ints, wc->ioaddr + WC_INTSTAT);
+
if (ints & 0x10) {
/* Stop DMA, wait for watchdog */
printk("TDM PCI Master abort\n");