diff options
author | Andrew Bresticker <abrestic@chromium.org> | 2014-12-16 22:05:44 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-12-22 18:52:07 +0100 |
commit | c0e7dc21d33caa31296d1e4af1e99008359f1b64 (patch) | |
tree | 33501b62eb403f704e173fff2780536d81968d70 /drivers/spi | |
parent | Linux 3.19-rc1 (diff) | |
download | linux-c0e7dc21d33caa31296d1e4af1e99008359f1b64.tar.xz linux-c0e7dc21d33caa31296d1e4af1e99008359f1b64.zip |
spi: img-spfi: Enable controller before starting TX DMA
It is recommended that the SPFI controller be enabled (i.e. setting
SPFI_EN in SPFI_CONTROL) before TX DMA begins.
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-img-spfi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-img-spfi.c b/drivers/spi/spi-img-spfi.c index b410499cddca..cd14556852bf 100644 --- a/drivers/spi/spi-img-spfi.c +++ b/drivers/spi/spi-img-spfi.c @@ -390,14 +390,14 @@ static int img_spfi_start_dma(struct spi_master *master, dma_async_issue_pending(spfi->rx_ch); } + spfi_start(spfi); + if (xfer->tx_buf) { spfi->tx_dma_busy = true; dmaengine_submit(txdesc); dma_async_issue_pending(spfi->tx_ch); } - spfi_start(spfi); - return 1; stop_dma: |