[PATCH] tpm: interrupt clear fix
authorKylene Jo Hall <[email protected]>
Fri, 14 Jul 2006 07:24:30 +0000 (00:24 -0700)
committerLinus Torvalds <[email protected]>
Sat, 15 Jul 2006 04:53:55 +0000 (21:53 -0700)
Under stress testing I found that the interrupt is not always cleared.

Signed-off-by: Kylene Hall <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/char/tpm/tpm_tis.c

index 3232b1932597e88989366a445d59c0de420728f7..29dac1e4537cb64f64780fc70863395caeaf22a6 100644 (file)
@@ -424,6 +424,7 @@ static irqreturn_t tis_int_handler(int irq, void *dev_id, struct pt_regs *regs)
        iowrite32(interrupt,
                  chip->vendor.iobase +
                  TPM_INT_STATUS(chip->vendor.locality));
+       ioread32(chip->vendor.iobase + TPM_INT_STATUS(chip->vendor.locality));
        return IRQ_HANDLED;
 }