Lorenzo Bianconi 2e6bbfe7b0
spi: airoha: fix dirmap_{read,write} operations
SPI_NFI_READ_FROM_CACHE_DONE bit must be written at the end of
dirmap_read operation even if it is already set.
In the same way, SPI_NFI_LOAD_TO_CACHE_DONE bit must be written at the
end of dirmap_write operation even if it is already set.
For this reason use regmap_write_bits() instead of regmap_set_bits().
This patch fixes mtd_pagetest kernel module test.

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-1-de2e74ed4664@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-09-18 15:10:32 +02:00
..
2024-07-08 17:01:10 +01:00
2024-09-12 12:38:44 +01:00
2024-09-12 12:38:44 +01:00
2024-07-08 17:01:10 +01:00
2024-06-25 20:04:31 +01:00
2024-07-15 18:03:43 -07:00
2024-09-02 12:56:31 +01:00
2024-06-11 11:38:25 +01:00
2023-08-21 14:29:37 +01:00
2024-07-05 18:47:46 +01:00
2024-09-12 12:38:44 +01:00
2024-09-12 12:38:44 +01:00