]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: spi-qpic-snand: handle 'use_ecc' parameter of qcom_spi_config_cw_read()
authorGabor Juhos <j4g8y7@gmail.com>
Fri, 8 Aug 2025 17:15:01 +0000 (19:15 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 13 Aug 2025 11:52:45 +0000 (12:52 +0100)
commit9c45f95222beecd6a284fd1284d54dd7a772cf59
tree73ae1c9908058880fe143d90b03dd05a9da79dfb
parent274f3264edad37a3b87f454c376decd89a0d5cb4
spi: spi-qpic-snand: handle 'use_ecc' parameter of qcom_spi_config_cw_read()

During raw read, neither the status of the ECC correction nor the erased
state of the codeword gets checked by the qcom_spi_read_cw_raw() function,
so in case of raw access reading the corresponding registers via DMA is
superfluous.

Extend the qcom_spi_config_cw_read() function to evaluate the existing
(but actually unused) 'use_ecc' parameter, and configure reading only
the flash status register when ECC is not used.

With the change, the code gets in line with the corresponding part of
the config_nand_cw_read() function in the qcom_nandc driver.

Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://patch.msgid.link/20250808-qpic-snand-handle-use_ecc-v1-1-67289fbb5e2f@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qpic-snand.c