]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/spi/spi-mxs.c
spi: mxs: Terminate DMA in case of DMA timeout
[~shefty/rdma-dev.git] / drivers / spi / spi-mxs.c
index 5a63bcd7a23d464bdbd26f231250a560e10ff9a5..86dd04d6bc873dfa30f0bab1148bd863aac818fc 100644 (file)
@@ -323,6 +323,7 @@ static int mxs_spi_txrx_dma(struct mxs_spi *spi, int cs,
        if (!ret) {
                dev_err(ssp->dev, "DMA transfer timeout\n");
                ret = -ETIMEDOUT;
+               dmaengine_terminate_all(ssp->dmach);
                goto err_vmalloc;
        }