diff options
author | Alexander Sverdlin <alexander.sverdlin@siemens.com> | 2023-05-24 18:40:40 +0300 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2023-07-17 22:32:30 +0300 |
commit | 83e7e5d89f04d1c417492940f7922bc8416a8cc4 (patch) | |
tree | d0a987759a9ef6a9f9f1e34a8ddb13f6d1597ac2 /security | |
parent | f3b70b6e3390bfdf18fdd7d278a72a12784fdcce (diff) | |
download | linux-83e7e5d89f04d1c417492940f7922bc8416a8cc4.tar.xz |
tpm: tis_i2c: Limit write bursts to I2C_SMBUS_BLOCK_MAX (32) bytes
Underlying I2C bus drivers not always support longer transfers and
imx-lpi2c for instance doesn't. The fix is symmetric to previous patch
which fixed the read direction.
Cc: stable@vger.kernel.org # v5.20+
Fixes: bbc23a07b072 ("tpm: Add tpm_tis_i2c backend for tpm_tis_core")
Tested-by: Michael Haener <michael.haener@siemens.com>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions