Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292280
b: refs/heads/master
c: 4e401fb
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Berger authored and Rajiv Andrade committed Feb 14, 2012
1 parent 5541e28 commit 1fe4cc5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4040153087478993cbf0809f444400a3c808074c
refs/heads/master: 4e401fb028b79105ed87d85fc2220c77be277ed9
2 changes: 2 additions & 0 deletions trunk/drivers/char/tpm/tpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ struct tpm_vendor_specific {
wait_queue_head_t int_queue;
};

#define TPM_VID_INTEL 0x8086

struct tpm_chip {
struct device *dev; /* Device stuff */

Expand Down
8 changes: 5 additions & 3 deletions trunk/drivers/char/tpm/tpm_tis.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,11 @@ static int probe_itpm(struct tpm_chip *chip)
};
size_t len = sizeof(cmd_getticks);
int rem_itpm = itpm;
u16 vendor = ioread16(chip->vendor.iobase + TPM_DID_VID(0));

/* probe only iTPMS */
if (vendor != TPM_VID_INTEL)
return 0;

itpm = 0;

Expand All @@ -390,9 +395,6 @@ static int probe_itpm(struct tpm_chip *chip)
out:
itpm = rem_itpm;
tpm_tis_ready(chip);
/* some TPMs need a break here otherwise they will not work
* correctly on the immediately subsequent command */
msleep(chip->vendor.timeout_b);
release_locality(chip, chip->vendor.locality, 0);

return rc;
Expand Down

0 comments on commit 1fe4cc5

Please sign in to comment.