Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79b591c0 authored by apronin@chromium.org's avatar apronin@chromium.org Committed by Jarkko Sakkinen
Browse files

tpm_tis_core: convert max timeouts from msec to jiffies



tpm_tis_core was missing conversion from msec when assigning max
timeouts from constants.

Fixes: aec04cbd ("tpm: TPM 2.0 FIFO Interface")
Signed-off-by: default avatarAndrey Pronin <apronin@chromium.org>
Reviewed-by: default avatarJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
parent d4d03f74
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -671,10 +671,10 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq,
#endif

	/* Maximum timeouts */
	chip->timeout_a = TIS_TIMEOUT_A_MAX;
	chip->timeout_b = TIS_TIMEOUT_B_MAX;
	chip->timeout_c = TIS_TIMEOUT_C_MAX;
	chip->timeout_d = TIS_TIMEOUT_D_MAX;
	chip->timeout_a = msecs_to_jiffies(TIS_TIMEOUT_A_MAX);
	chip->timeout_b = msecs_to_jiffies(TIS_TIMEOUT_B_MAX);
	chip->timeout_c = msecs_to_jiffies(TIS_TIMEOUT_C_MAX);
	chip->timeout_d = msecs_to_jiffies(TIS_TIMEOUT_D_MAX);
	priv->phy_ops = phy_ops;
	dev_set_drvdata(&chip->dev, priv);