[ig4] Ignore stray interrupts
This commit is contained in:
parent
733d657a74
commit
0a6b1b56d9
@ -685,9 +685,12 @@ ig4iic_intr(void *cookie)
|
|||||||
ig4iic_softc_t *sc = cookie;
|
ig4iic_softc_t *sc = cookie;
|
||||||
|
|
||||||
mtx_lock(&sc->io_lock);
|
mtx_lock(&sc->io_lock);
|
||||||
|
/* Ignore stray interrupts */
|
||||||
|
if (sc->intr_mask != 0 && reg_read(sc, IG4_REG_INTR_STAT) != 0) {
|
||||||
set_intr_mask(sc, 0);
|
set_intr_mask(sc, 0);
|
||||||
reg_read(sc, IG4_REG_CLR_INTR);
|
reg_read(sc, IG4_REG_CLR_INTR);
|
||||||
wakeup(sc);
|
wakeup(sc);
|
||||||
|
}
|
||||||
mtx_unlock(&sc->io_lock);
|
mtx_unlock(&sc->io_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user