tpm_tis: restore IRQ vector in IO memory after failed probing
authorMartin Wilck <Martin.Wilck@ts.fujitsu.com>
Mon, 9 Nov 2015 14:38:50 +0000 (16:38 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 9 Nov 2015 15:52:54 +0000 (17:52 +0200)
commit14b5c1c9159bf6f109b667d31da82859d8c8cdcd
treea87c5b9fefeeee58a28777dff292eab58210f827
parent2aef9da60bfdeb68dbcd4f114c098cbaa841b4ee
tpm_tis: restore IRQ vector in IO memory after failed probing

If the probing finishes without success, it will leave the value 15 in
the TPM_IRQ_VECTOR register. If the driver is unloaded and reloaded, it
will "think" that the hardware had been programmed with IRQ 15, and will
not probe again.

This patch restores the original value in the IO memory if no IRQ is
probed.

Signed-off-by: Martin Wilck <Martin.Wilck@ts.fujitsu.com>
Acked-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Acked-by: Peter Huewe <PeterHuewe@gmx.de>
drivers/char/tpm/tpm_tis.c