]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: spi-qpic-snand: propagate errors from qcom_spi_block_erase()
authorGabor Juhos <j4g8y7@gmail.com>
Wed, 23 Apr 2025 19:31:57 +0000 (21:31 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 24 Apr 2025 11:52:59 +0000 (12:52 +0100)
commit722a6ad4867ce8c4cb131a3371d0b5389a75dee0
treed2ed7ceca3ad02c4dd1cd23c16c460819b32d311
parent460b14b0929fa9f658a7e159ef646ce456962ab0
spi: spi-qpic-snand: propagate errors from qcom_spi_block_erase()

The qcom_spi_block_erase() function returns with error in case of
failure. Change the qcom_spi_send_cmdaddr() function to propagate
these errors to the callers instead of returning with success.

Fixes: 7304d1909080 ("spi: spi-qpic: add driver for QCOM SPI NAND flash Interface")
Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://patch.msgid.link/20250423-qpic-snand-propagate-error-v1-1-4b26ed45fdb5@gmail.com
Reviewed-by: Md Sadre Alam <quic_mdalam@quicinc.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qpic-snand.c