Correct unexpected interrupt detection.

This commit is contained in:
Orion Hodson 2001-12-19 18:26:53 +00:00
parent 29a2220a5c
commit df6ee7b7a1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88215

View file

@ -380,7 +380,7 @@ ich_intr(void *p)
u_int32_t cbi, lbi, lvi, st, gs;
int i;
gs = ich_rd(sc, ICH_REG_GLOB_STA, 4) | ICH_GLOB_STA_IMASK;
gs = ich_rd(sc, ICH_REG_GLOB_STA, 4) & ICH_GLOB_STA_IMASK;
if (gs & (ICH_GLOB_STA_PRES | ICH_GLOB_STA_SRES)) {
/* Clear resume interrupt(s) - nothing doing with them */
ich_wr(sc, ICH_REG_GLOB_STA, gs, 4);