TPM: Fixup boot probe timeout for tpm_tis driver
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Wed, 9 Sep 2009 23:22:18 +0000 (17:22 -0600)
committerJames Morris <jmorris@namei.org>
Thu, 10 Sep 2009 09:19:09 +0000 (19:19 +1000)
When probing the device in tpm_tis_init the call request_locality
uses timeout_a, which wasn't being initalized until after
request_locality. This results in request_locality falsely timing
out if the chip is still starting. Move the initialization to before
request_locality.

This probably only matters for embedded cases (ie mine), a BIOS likely
gets the TPM into a state where this code path isn't necessary.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Acked-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>

No differences found