提交 c0e7dc21 编写于 作者: A Andrew Bresticker 提交者: Mark Brown

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: NAndrew Bresticker <abrestic@chromium.org>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 97bf6af1
...@@ -390,14 +390,14 @@ static int img_spfi_start_dma(struct spi_master *master, ...@@ -390,14 +390,14 @@ static int img_spfi_start_dma(struct spi_master *master,
dma_async_issue_pending(spfi->rx_ch); dma_async_issue_pending(spfi->rx_ch);
} }
spfi_start(spfi);
if (xfer->tx_buf) { if (xfer->tx_buf) {
spfi->tx_dma_busy = true; spfi->tx_dma_busy = true;
dmaengine_submit(txdesc); dmaengine_submit(txdesc);
dma_async_issue_pending(spfi->tx_ch); dma_async_issue_pending(spfi->tx_ch);
} }
spfi_start(spfi);
return 1; return 1;
stop_dma: stop_dma:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册