]> git.baikalelectronics.ru Git - kernel.git/commit
tpm_tis: verify interrupt during init
authorScot Doyle <lkml14@scotdoyle.com>
Wed, 24 Sep 2014 22:41:10 +0000 (22:41 +0000)
committerPeter Huewe <peterhuewe@gmx.de>
Sat, 17 Jan 2015 13:00:05 +0000 (14:00 +0100)
commite0625feacf18a4c12515c6a1f48122827b425e48
tree723a1174212ace1244c6dacd67f4450d8090bee5
parentf0e39572b7ce32617cb78bde460a58865b2ec0d5
tpm_tis: verify interrupt during init

Some machines, such as the Acer C720 and Toshiba CB35, have TPMs that do
not send IRQs while also having an ACPI TPM entry indicating that they
will be sent. These machines freeze on resume while the tpm_tis module
waits for an IRQ, eventually timing out.

When in interrupt mode, the tpm_tis module should receive an IRQ during
module init. Fall back to polling mode if none is received when expected.

Cc: <stable@vger.kernel.org>
Signed-off-by: Scot Doyle <lkml14@scotdoyle.com>
Tested-by: Michael Mullin <masmullin@gmail.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
[phuewe: minor checkpatch fixed]
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm_tis.c