]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tpm: Autodetect itpm devices
authorMatthew Garrett <mjg@redhat.com>
Thu, 21 Oct 2010 21:42:40 +0000 (17:42 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:44:59 +0000 (12:44 -0700)
commit8a79989a2ae13b66764aea35156dd7a7e572c356
tree8fae15b4d3cd66f6fea55fc8923342ce2db433e9
parent22bd8535f36e895c87dc5d14b8dda917b3dc9cf2
tpm: Autodetect itpm devices

commit 3f0d3d016d89a5efb8b926d4707eb21fa13f3d27 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tpm/tpm_tis.c