Moved from using tpm_tis_status() to the vendor specific
one in wait_for_stat(). This way other TPM drivers can use it
instead of reimplementing another.
Signed-off-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
u8 status;
/* check current status */
u8 status;
/* check current status */
- status = tpm_tis_status(chip);
+ status = chip->vendor.status(chip);
if ((status & mask) == mask)
return 0;
if ((status & mask) == mask)
return 0;
if ((long)timeout <= 0)
return -ETIME;
rc = wait_event_interruptible_timeout(*queue,
if ((long)timeout <= 0)
return -ETIME;
rc = wait_event_interruptible_timeout(*queue,
- ((tpm_tis_status
- (chip) & mask) ==
- mask), timeout);
+ ((chip->vendor.status(chip)
+ & mask) == mask),
+ timeout);
if (rc > 0)
return 0;
if (rc == -ERESTARTSYS && freezing(current)) {
if (rc > 0)
return 0;
if (rc == -ERESTARTSYS && freezing(current)) {
} else {
do {
msleep(TPM_TIMEOUT);
} else {
do {
msleep(TPM_TIMEOUT);
- status = tpm_tis_status(chip);
+ status = chip->vendor.status(chip);
if ((status & mask) == mask)
return 0;
} while (time_before(jiffies, stop));
if ((status & mask) == mask)
return 0;
} while (time_before(jiffies, stop));