]> git.ipfire.org Git - thirdparty/linux.git/commit
spi: airoha: fix airoha_snand_{write,read}_data data_len estimation
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 13 Sep 2024 21:07:14 +0000 (23:07 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 18 Sep 2024 13:10:33 +0000 (15:10 +0200)
commit0e58637eb968c636725dcd6c7055249b4e5326fb
treeb6e958b3cdf0747f344c0a5ba2ff37f759cc6337
parent2e6bbfe7b0c0607001b784082c2685b134174fac
spi: airoha: fix airoha_snand_{write,read}_data data_len estimation

Fix data length written and read in airoha_snand_write_data and
airoha_snand_read_data routines respectively if it is bigger than
SPI_MAX_TRANSFER_SIZE.

Fixes: a403997c1201 ("spi: airoha: add SPI-NAND Flash controller driver")
Tested-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20240913-airoha-spi-fixes-v1-2-de2e74ed4664@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-airoha-snfi.c