]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tpm_tis_spi: Remove limitation of transfers to MAX_SPI_FRAMESIZE bytes
authorPeter Huewe <peter.huewe@infineon.com>
Thu, 2 Mar 2017 13:03:14 +0000 (13:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 13:44:31 +0000 (15:44 +0200)
commitc4b3779c978339a5b169ed08d773f9f98e15aa99
tree4d4be956657f1a19a1693b8f9db0d5b5ad9732fe
parentd513cf24e240f8c7a9127b566b915ce9730fd23e
tpm_tis_spi: Remove limitation of transfers to MAX_SPI_FRAMESIZE bytes

commit 591e48c26ced7c455751eef27fb5963e902c2137 upstream.

Limiting transfers to MAX_SPI_FRAMESIZE was not expected by the upper
layers, as tpm_tis has no such limitation. Add a loop to hide that
limitation.

v2: Moved scope of spi_message to the top as requested by Jarkko
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/tpm/tpm_tis_spi.c