tpm: Autodetect itpm devices
authorMatthew Garrett <mjg@redhat.com>
Thu, 21 Oct 2010 21:42:40 +0000 (17:42 -0400)
committerJames Morris <jmorris@namei.org>
Mon, 29 Nov 2010 22:18:01 +0000 (09:18 +1100)
commit3f0d3d016d89a5efb8b926d4707eb21fa13f3d27
tree9cf5a19b80d8c935db98110f2ac822c74f9ec9b9
parent72083646528d4887b920deb71b37e09bc7d227bb
tpm: Autodetect itpm devices

Some Lenovos have TPMs that require a quirk to function correctly. This can
be autodetected by checking whether the device has a _HID of INTC0102. This
is an invalid PNPid, and as such is discarded by the pnp layer - however
it's still present in the ACPI code, so we can pull it out that way. This
means that the quirk won't be automatically applied on non-ACPI systems,
but without ACPI we don't have any way to identify the chip anyway so I
don't think that's a great concern.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Acked-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Tested-by: Jiri Kosina <jkosina@suse.cz>
Tested-by: Andy Isaacson <adi@hexapodia.org>
Signed-off-by: James Morris <jmorris@namei.org>
drivers/char/tpm/tpm_tis.c