]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tpm_tis_spi: Abort transfer when too many wait states are signaled
authorPeter Huewe <peter.huewe@infineon.com>
Thu, 2 Mar 2017 13:03:12 +0000 (13:03 +0000)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 3 Apr 2017 19:46:01 +0000 (22:46 +0300)
commit975094ddc369a32f27210248bdd9bbd153061b00
treea6368da8b555ef4c3ce5b5cd55637c8ad9ff0ede
parentf848f2143ae42dc0918400039257a893835254d1
tpm_tis_spi: Abort transfer when too many wait states are signaled

Abort the transfer with ETIMEDOUT when the TPM signals more than
TPM_RETRY wait states. Continuing with the transfer in this state
will only lead to arbitrary failures in other parts of the code.

Cc: <stable@vger.kernel.org>
Fixes: 0edbfea537d1 ("tpm/tpm_tis_spi: Add support for spi phy")
Signed-off-by: Alexander Steffen <Alexander.Steffen@infineon.com>
Signed-off-by: Peter Huewe <peter.huewe@infineon.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Benoit Houyere <benoit.houyere@st.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm_tis_spi.c