]> 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:46:10 +0000 (15:46 +0200)
commit32a6b61947548bb1f2666171c5adc10cfd841ae7
tree95b728f5ef09f23ae7e6ef09608c62346bb0214d
parente2fbfd47e366d309ed94949fabf040a2765419e7
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