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
..
2008-10-15 11:31:54 +11:00
2008-10-15 11:31:54 +11:00
2008-10-16 11:21:48 -07:00
2008-08-19 18:47:56 +02:00
2008-10-16 11:21:40 -07:00
2008-08-26 00:19:28 +10:00
2008-10-16 11:21:38 -07:00
2008-10-13 21:51:57 +01:00
2008-10-16 11:21:30 -07:00
2008-10-14 10:11:27 +11:00
2008-10-16 11:21:49 -07:00
2008-10-15 11:31:54 +11:00
2008-10-16 11:21:40 -07:00
2008-09-03 15:55:32 -07:00
2008-10-14 10:23:27 -07:00
2008-10-15 11:31:54 +11:00
2008-08-04 12:51:06 +09:00
2008-10-16 11:21:45 -07:00
2008-10-03 10:04:10 +02:00
2008-08-13 17:33:00 -07:00