Re: [RFC PATCH v8] tpm_tis: verify interrupt during init

From: Scot Doyle
Date: Mon Sep 22 2014 - 22:45:33 EST


On Mon, 22 Sep 2014, Jason Gunthorpe wrote:

On Thu, Sep 11, 2014 at 12:50:00AM +0000, Scot Doyle wrote:
+ if (!priv->irq_tested) {

I think the sleep and check is still needed here, the IRQ delivery
could race relative to the MMIO read of completion, a sleep is the
only way we could attempt to synchronize them..

+ disable_interrupts(chip);
+ dev_err(chip->dev,
+ FW_BUG "TPM interrupt not working, polling instead\n");
+ }
+ priv->irq_tested = true;
+ return rc;
+}

We re-tested this v9 patch. It has the msleep(1) added just above this section for better formatting, as well as a devm_kzalloc check in tpm_tis_init. Thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/