From: Christophe Ricard Date: Mon, 23 Mar 2015 21:29:56 +0000 (+0100) Subject: tpm/st33zp24: Add proper wait for ordinal duration in case of irq mode X-Git-Tag: omap-for-v4.2/o2_dc~129^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7216ebc51bdd62517be6878dd37555ff428a80c9;p=pandora-kernel.git tpm/st33zp24: Add proper wait for ordinal duration in case of irq mode In case the driver is configured to use irq, we are not waiting the answer for a duration period to see the DATA_AVAIL status bit to raise but at maximum timeout_c. This may result in critical failure as we will not wait long enough for the command completion. Reviewed-by: Jason Gunthorpe Signed-off-by: Christophe Ricard Fixes: bf38b8710892 ("tpm/tpm_i2c_stm_st33: Split tpm_i2c_tpm_st33 in 2 layers (core + phy)") Reviewed-by: Peter Huewe Signed-off-by: Peter Huewe --- Reading git-diff-tree failed