]> git.kernelconcepts.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>
Thu, 17 Feb 2011 22:47:27 +0000 (14:47 -0800)
commit267b02bf3ccda4ba557e56e4cbc827cef74e036f
tree9e68cd316448d397b72fa19ebe6d9a455697c9b4
parent1d91afd8b1854d363d88cf95dafeaffff6f8bb08
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