aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tpm/tpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/tpm/tpm.c')
-rw-r--r--drivers/char/tpm/tpm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpm.c b/drivers/char/tpm/tpm.c
index 24c4423d4851..150c86af7809 100644
--- a/drivers/char/tpm/tpm.c
+++ b/drivers/char/tpm/tpm.c
@@ -390,6 +390,9 @@ static ssize_t tpm_transmit(struct tpm_chip *chip, const char *buf,
390 goto out; 390 goto out;
391 } 391 }
392 392
393 if (chip->vendor.irq)
394 goto out_recv;
395
393 stop = jiffies + tpm_calc_ordinal_duration(chip, ordinal); 396 stop = jiffies + tpm_calc_ordinal_duration(chip, ordinal);
394 do { 397 do {
395 u8 status = chip->vendor.status(chip); 398 u8 status = chip->vendor.status(chip);