From 45728544da8401bb99781193fa6e28e1d80d13d1 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Wed, 3 Nov 2004 17:12:29 +0000 Subject: Return 1 instead of 0 in ipw_intr() if the interrupt is handled by us. Ignore invalid 0xffffffff interrupts. ok claudio@ --- sys/dev/pci/if_ipw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c index 23ee4ca0bb9..deafcfa9fb4 100644 --- a/sys/dev/pci/if_ipw.c +++ b/sys/dev/pci/if_ipw.c @@ -1,4 +1,4 @@ -/* $Id: if_ipw.c,v 1.22 2004/11/03 17:11:14 damien Exp $ */ +/* $Id: if_ipw.c,v 1.23 2004/11/03 17:12:28 damien Exp $ */ /*- * Copyright (c) 2004 @@ -732,7 +732,7 @@ ipw_intr(void *arg) struct ipw_softc *sc = arg; u_int32_t r; - if ((r = CSR_READ_4(sc, IPW_CSR_INTR)) == 0) + if ((r = CSR_READ_4(sc, IPW_CSR_INTR)) == 0 || r == 0xffffffff) return 0; /* Disable interrupts */ @@ -762,7 +762,7 @@ ipw_intr(void *arg) /* Re-enable interrupts */ CSR_WRITE_4(sc, IPW_CSR_INTR_MASK, IPW_INTR_MASK); - return 0; + return 1; } int -- cgit v1.2.3