]> git.hungrycats.org Git - linux/commit
spi: sg2044-nor: Return transfer errors
authorHan Gao <gaohan@iscas.ac.cn>
Wed, 30 Sep 2026 18:22:50 +0000 (02:22 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 6 Oct 2026 15:26:28 +0000 (17:26 +0200)
commite130c54fbb603f9aeacf5029789b4a2c8c48f416
tree025b590bf62a84c08a5743953f135995f2340e4d
parentfd99864b0ac936e870c7ae28354c5cd3dad5efd0
spi: sg2044-nor: Return transfer errors

The transfer helpers return errors, but both dispatchers discard them.
Return these errors to the SPI memory layer instead of reporting success.

Fixes: de16c322eefb ("spi: sophgo: add SG2044 SPI NOR controller driver")
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
Link: https://patch.msgid.link/20261001-fix-sg204xspi-v2-1-014dbaf22b5e@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sg2044-nor.c