Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114911
b: refs/heads/master
c: 292cf4a
h: refs/heads/master
i:
  114909: 3d64d78
  114907: 9493e91
  114903: 6cfa4e7
  114895: 379b10c
  114879: 17bbd3f
v: v3
  • Loading branch information
Valdis Kletnieks authored and Linus Torvalds committed Oct 16, 2008
1 parent 05fd0c8 commit b46d36d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e5b1b12226d5a501fbc6706ca090e00d18a01ad
refs/heads/master: 292cf4a8a989cb564a6a5f0ba7a66e08a095afa1
7 changes: 7 additions & 0 deletions trunk/drivers/char/tpm/tpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,13 @@ void tpm_get_timeouts(struct tpm_chip *chip)
usecs_to_jiffies(be32_to_cpu
(*((__be32 *) (data +
TPM_GET_CAP_RET_UINT32_1_IDX))));
/* The Broadcom BCM0102 chipset in a Dell Latitude D820 gets the above
* value wrong and apparently reports msecs rather than usecs. So we
* fix up the resulting too-small TPM_SHORT value to make things work.
*/
if (chip->vendor.duration[TPM_SHORT] < (HZ/100))
chip->vendor.duration[TPM_SHORT] = HZ;

chip->vendor.duration[TPM_MEDIUM] =
usecs_to_jiffies(be32_to_cpu
(*((__be32 *) (data +
Expand Down

0 comments on commit b46d36d

Please sign in to comment.