summaryrefslogtreecommitdiff
path: root/wcfxo.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2001-11-10 01:26:34 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2001-11-10 01:26:34 +0000
commit2589b9eac4c9786cd363391b42608740efe361ff (patch)
treeb170fb87ec3120a7757cfd5d8b66475560968dd1 /wcfxo.c
parentc7560004aaa6726490d908eaaedcac62e3118701 (diff)
Version 0.1.3 from FTP
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@30 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wcfxo.c')
-rwxr-xr-xwcfxo.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/wcfxo.c b/wcfxo.c
index 017ec5a..c820248 100755
--- a/wcfxo.c
+++ b/wcfxo.c
@@ -247,16 +247,24 @@ static void wcfxo_interrupt(int irq, void *dev_id, struct pt_regs *regs)
ints = inb(wc->ioaddr + WC_INTSTAT);
outb(ints, wc->ioaddr + WC_INTSTAT);
+
+ if (!ints)
+ return;
+
if (ints & 0x0f) {
wcfxo_transmitprep(wc, ints);
wcfxo_receiveprep(wc, ints);
}
- if (ints & 0x10)
+ if (ints & 0x10) {
printk("PCI Master abort\n");
-
- if (ints & 0x20)
+ return;
+ }
+
+ if (ints & 0x20) {
printk("PCI Target abort\n");
+ return;
+ }
if (1 /* !(wc->report % 0xf) */) {
/* Check RING from register and debounce for 8ms */