]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:33:16 +0000 (16:33 +0200)
commitb75f01b2cb4c3a5a3fa7d8088a4401d3c774b43d
tree9d6ec1b0f4110cf980331ae606a3701022dc3fdc
parentd8e267c24cc4b8733aed7bf9dcb3407fbfe81edc
spi: airoha: fix airoha_snand_{write,read}_data data_len estimation

[ Upstream commit 0e58637eb968c636725dcd6c7055249b4e5326fb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-airoha-snfi.c