From 4f119dfb62dba4a1b860552581c6b2fa04121b99 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 6 Jan 2005 23:18:44 +0000 Subject: Make sure to clear any pending interrupts when we stop the interface. --- sys/pci/if_sis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c index e257db3..e30647a 100644 --- a/sys/pci/if_sis.c +++ b/sys/pci/if_sis.c @@ -2282,6 +2282,7 @@ sis_stop(struct sis_softc *sc) #endif CSR_WRITE_4(sc, SIS_IER, 0); CSR_WRITE_4(sc, SIS_IMR, 0); + CSR_READ_4(sc, SIS_ISR); /* clear any interrupts already pending */ SIS_SETBIT(sc, SIS_CSR, SIS_CSR_TX_DISABLE|SIS_CSR_RX_DISABLE); DELAY(1000); CSR_WRITE_4(sc, SIS_TX_LISTPTR, 0); -- cgit v1.1