WSL2-Linux-Kernel/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 [PATCH] tpm: driver for next generation TPM chips 2006-04-22 09:19:54 -07:00
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 tpmdd maintainers 2007-08-22 19:52:44 -07:00
tpm_atmel.h tpmdd maintainers 2007-08-22 19:52:44 -07:00
tpm_bios.c tpm_bios.c: make 2 structs static 2008-07-26 12:00:04 -07:00
tpm_infineon.c tpm: infineon section mismatch 2008-02-06 10:41:10 -08:00
tpm_nsc.c tpm: fix section mismatch warning 2008-04-29 08:06:26 -07:00
tpm_tis.c The tpm_dev_release function is only called for platform devices, not pnp 2008-10-11 09:04:39 +11:00