Skip to content

Commit 8e99165

Browse files
committed
Merge tag 'spi-mxs' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc
Pull minor spi MXS fixes from Mark Brown: "These fixes are both pretty minor ones and are driver local." * tag 'spi-mxs' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc: spi: mxs: Terminate DMA in case of DMA timeout spi: mxs: Assign message status after transfer finished
2 parents 065c801 + 4496846 commit 8e99165

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/spi/spi-mxs.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ static int mxs_spi_txrx_dma(struct mxs_spi *spi, int cs,
323323
if (!ret) {
324324
dev_err(ssp->dev, "DMA transfer timeout\n");
325325
ret = -ETIMEDOUT;
326+
dmaengine_terminate_all(ssp->dmach);
326327
goto err_vmalloc;
327328
}
328329

@@ -480,7 +481,7 @@ static int mxs_spi_transfer_one(struct spi_master *master,
480481
first = last = 0;
481482
}
482483

483-
m->status = 0;
484+
m->status = status;
484485
spi_finalize_current_message(master);
485486

486487
return status;

0 commit comments

Comments
 (0)