Message ID | 1418763946-22260-1-git-send-email-abrestic@chromium.org (mailing list archive) |
---|---|
State | Accepted |
Commit | c0e7dc21d33caa31296d1e4af1e99008359f1b64 |
Headers | show |
On Tue, Dec 16, 2014 at 01:05:44PM -0800, Andrew Bresticker wrote: > It is recommended that the SPFI controller be enabled (i.e. setting > SPFI_EN in SPFI_CONTROL) before TX DMA begins. Applied, thanks.
diff --git a/drivers/spi/spi-img-spfi.c b/drivers/spi/spi-img-spfi.c index 43781c9..e7e79e6 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:
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> --- drivers/spi/spi-img-spfi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)