android_kernel_samsung_msm8976/drivers/char/tpm
Marcin Obara 9e5b1b1222 tpm: correct tpm timeouts to jiffies conversion
This patch fixes timeouts conversion to jiffies, by replacing
msecs_to_jiffies() calls with usecs_to_jiffies().  According to TCG TPM
Specification Version 1.2 Revision 103 (pages 166, 167) TPM timeouts and
durations are returned in microseconds (usec) not in miliseconds (msec).

This fixes a long hang while loading TPM driver, if TPM chip starts in
"Idle" state instead of "Ready" state.  Without this patch - 'modprobe'
may hang for 30 seconds or more.

Signed-off-by: Marcin Obara <marcin_obara@users.sourceforge.net>
Cc: Marcel Selhorst <tpm@selhorst.net>
Cc: Kylene Jo Hall <kjhall@us.ibm.com>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-10-16 11:21:49 -07:00
..
Kconfig securityfs: do not depend on CONFIG_SECURITY 2008-08-28 10:47:42 +10:00
Makefile
tpm.c tpm: correct tpm timeouts to jiffies conversion 2008-10-16 11:21:49 -07:00
tpm.h The tpm_dev_release function is only called for platform devices, not pnp 2008-10-11 09:04:39 +11:00
tpm_atmel.c
tpm_atmel.h
tpm_bios.c tpm_bios.c: make 2 structs static 2008-07-26 12:00:04 -07:00
tpm_infineon.c
tpm_nsc.c
tpm_tis.c The tpm_dev_release function is only called for platform devices, not pnp 2008-10-11 09:04:39 +11:00