]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
spi: omap2-mcspi: don't call dma_async_issue_pending() when there is no dma_tx
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 11 Dec 2013 15:30:12 +0000 (16:30 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 27 Aug 2014 08:32:23 +0000 (10:32 +0200)
drivers/spi/spi-omap2-mcspi.c

index 6088d028d26c6d6b4ee96880b9b5ca1952b95514..d7f89afa656eee14491b92187a51952705451c4c 100644 (file)
@@ -421,8 +421,8 @@ static void omap2_mcspi_tx_dma(struct spi_device *spi,
                } else {
                        /* FIXME: fall back to PIO? */
                }
+               dma_async_issue_pending(mcspi_dma->dma_tx);
        }
-       dma_async_issue_pending(mcspi_dma->dma_tx);
        omap2_mcspi_set_dma_req(spi, 0, 1);
 }