tpm_infineon: fix suspend/resume handler for pnp_driver
authorMarcel Selhorst <m.selhorst@sirrix.com>
Wed, 10 Feb 2010 21:56:32 +0000 (13:56 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Feb 2010 15:37:52 +0000 (07:37 -0800)
commit00510c8f39d7b3501cc7ec79b677186ffbc7ca7e
treea317592644da90309c156ddc4836c0a9cab74f01
parentd632dfd88b02f1f89cbb9ec2d595580d1eba03bf
tpm_infineon: fix suspend/resume handler for pnp_driver

commit 93716b9470fbfd9efdc7d0f2445cb34635de3f6d upstream.

When suspending, tpm_infineon calls the generic suspend function of the
TPM framework.  However, the TPM framework does not return and the system
hangs upon suspend.  When sending the necessary command "TPM_SaveState"
directly within the driver, suspending and resuming works fine.

Signed-off-by: Marcel Selhorst <m.selhorst@sirrix.com>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Debora Velarde <debora@linux.vnet.ibm.com>
Cc: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tpm/tpm_infineon.c