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>
This commit is contained in:

committed by
Mark Brown

parent
97bf6af1f9
commit
c0e7dc21d3
@@ -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:
|
||||||
|
Reference in New Issue
Block a user