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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Feb 2010 21:59:42 +0000 (13:59 -0800)
commit93716b9470fbfd9efdc7d0f2445cb34635de3f6d
tree4793e53b0ed27f5791a73e851d52296b63c4d7f8
parentf79f11852831ba8837e82b73364e6f1cd0145499
tpm_infineon: fix suspend/resume handler for pnp_driver

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>
Cc: <stable@kernel.org> [2.6.32.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tpm/tpm_infineon.c