diff options
author | Tudor Ambarus <tudor.ambarus@linaro.org> | 2024-02-07 12:04:25 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-02-08 16:33:35 +0000 |
commit | 60dc8d342e933097eb82db5859edcac9077a6db5 (patch) | |
tree | d5379e1bc0b10e01e761a70ae5ddc2574f0adefa /drivers/spi | |
parent | e9c49effde70fb4b10d0ad9c94b69fe6314fc608 (diff) |
spi: s3c64xx: propagate the dma_submit_error() error code
DMA submit should just add the dma descriptor to a queue, without firing
it. EIO is misleading and hides what happens in DMA. Propagate the
dma_submit_error() error code, don't overwrite it.
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Link: https://lore.kernel.org/r/20240207120431.2766269-12-tudor.ambarus@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-s3c64xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 5da82013e17b..6012c88cb2ec 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -322,7 +322,7 @@ static int prepare_dma(struct s3c64xx_spi_dma_data *dma, ret = dma_submit_error(dma->cookie); if (ret) { dev_err(&sdd->pdev->dev, "DMA submission failed"); - return -EIO; + return ret; } dma_async_issue_pending(dma->ch); |