]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: airoha: switch back to non-dma mode in the case of error
authorMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Sun, 12 Oct 2025 12:16:56 +0000 (15:16 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 16 Oct 2025 13:25:33 +0000 (14:25 +0100)
commit20d7b236b78c7ec685a22db5689b9c829975e0c3
treebbfc9c28f53e0f421183850e0ee081d57deae088
parentedd2e261b1babb92213089b5feadca12e3459322
spi: airoha: switch back to non-dma mode in the case of error

Current dirmap code does not switch back to non-dma mode in the case of
error. This is wrong.

This patch fixes dirmap read/write error path.

Fixes: a403997c12019 ("spi: airoha: add SPI-NAND Flash controller driver")
Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patch.msgid.link/20251012121707.2296160-6-mikhail.kshevetskiy@iopsys.eu
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-airoha-snfi.c