* [PATCH] tpm_tis_core: Add the error log when the chip startup failed
@ 2020-10-27 11:33 Tian Tao
0 siblings, 0 replies; only message in thread
From: Tian Tao @ 2020-10-27 11:33 UTC (permalink / raw)
To: peterhuewe, jarkko, jgg, linux-integrity, linux-kernel
TPM does not print any log when the startup fails, if there is a
problem with the hardware, wait_wartup is the first place to go wrong,
so add error log when wait_wartup fails to locate the problem.
Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
drivers/char/tpm/tpm_tis_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/char/tpm/tpm_tis_core.c b/drivers/char/tpm/tpm_tis_core.c
index 92c51c6..660c0a93 100644
--- a/drivers/char/tpm/tpm_tis_core.c
+++ b/drivers/char/tpm/tpm_tis_core.c
@@ -991,6 +991,7 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq,
chip->ops->clk_enable(chip, true);
if (wait_startup(chip, 0) != 0) {
+ dev_err(dev, "Could not startup the TPM Chip\n");
rc = -ENODEV;
goto out_err;
}
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-27 11:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-27 11:33 [PATCH] tpm_tis_core: Add the error log when the chip startup failed Tian Tao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).