tpm_tis_core: Turn on the TPM before probing IRQ's
The interrupt probing sequence in tpm_tis_core cannot obviously run with
the TPM power gated. Power on the TPM with tpm_chip_start() before
probing IRQ's. Turn it off once the probing is complete.
Cc: linux-stable@vger.kernel.org
Fixes: a3fbfae82b
("tpm: take TPM chip power gating out of tpm_transmit()")
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
This commit is contained in:
Родитель
14591e2351
Коммит
5b359c7c43
|
@ -980,6 +980,7 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq,
|
||||||
goto out_err;
|
goto out_err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tpm_chip_start(chip);
|
||||||
if (irq) {
|
if (irq) {
|
||||||
tpm_tis_probe_irq_single(chip, intmask, IRQF_SHARED,
|
tpm_tis_probe_irq_single(chip, intmask, IRQF_SHARED,
|
||||||
irq);
|
irq);
|
||||||
|
@ -989,6 +990,7 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq,
|
||||||
} else {
|
} else {
|
||||||
tpm_tis_probe_irq(chip, intmask);
|
tpm_tis_probe_irq(chip, intmask);
|
||||||
}
|
}
|
||||||
|
tpm_chip_stop(chip);
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = tpm_chip_register(chip);
|
rc = tpm_chip_register(chip);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче