Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157355
b: refs/heads/master
c: ec57935
h: refs/heads/master
i:
  157353: ff771b3
  157351: cdfe764
v: v3
  • Loading branch information
Jason Gunthorpe authored and James Morris committed Sep 10, 2009
1 parent 2fcaad6 commit 5af9321
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: ddd29ec6597125c830f7badb608a86c98b936b64
refs/heads/master: ec57935837a78f9661125b08a5d08b697568e040
12 changes: 6 additions & 6 deletions trunk/drivers/char/tpm/tpm_tis.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,19 +450,19 @@ static int tpm_tis_init(struct device *dev, resource_size_t start,
goto out_err;
}

/* Default timeouts */
chip->vendor.timeout_a = msecs_to_jiffies(TIS_SHORT_TIMEOUT);
chip->vendor.timeout_b = msecs_to_jiffies(TIS_LONG_TIMEOUT);
chip->vendor.timeout_c = msecs_to_jiffies(TIS_SHORT_TIMEOUT);
chip->vendor.timeout_d = msecs_to_jiffies(TIS_SHORT_TIMEOUT);

if (request_locality(chip, 0) != 0) {
rc = -ENODEV;
goto out_err;
}

vendor = ioread32(chip->vendor.iobase + TPM_DID_VID(0));

/* Default timeouts */
chip->vendor.timeout_a = msecs_to_jiffies(TIS_SHORT_TIMEOUT);
chip->vendor.timeout_b = msecs_to_jiffies(TIS_LONG_TIMEOUT);
chip->vendor.timeout_c = msecs_to_jiffies(TIS_SHORT_TIMEOUT);
chip->vendor.timeout_d = msecs_to_jiffies(TIS_SHORT_TIMEOUT);

dev_info(dev,
"1.2 TPM (device-id 0x%X, rev-id %d)\n",
vendor >> 16, ioread8(chip->vendor.iobase + TPM_RID(0)));
Expand Down

0 comments on commit 5af9321

Please sign in to comment.