Commit cdcd565fa0925edf9b80c875fcc84a231c75bd1d
Committed by
Mark Brown
1 parent
3e81b59208
spi: sh-msiof: Fix transmit-only DMA transfers
Fix tx/rx mixup, which broke transmit-only transfers. Introduced by commit 4240305f7cbdc7782aa8bc40cc702775d9ac0839 ("spi: sh-msiof: Fix leaking of unused DMA descriptors"). Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/spi/spi-sh-msiof.c
... | ... | @@ -693,9 +693,9 @@ |
693 | 693 | reinit_completion(&p->done); |
694 | 694 | |
695 | 695 | /* Now start DMA */ |
696 | - if (tx) | |
697 | - dma_async_issue_pending(p->master->dma_rx); | |
698 | 696 | if (rx) |
697 | + dma_async_issue_pending(p->master->dma_rx); | |
698 | + if (tx) | |
699 | 699 | dma_async_issue_pending(p->master->dma_tx); |
700 | 700 | |
701 | 701 | ret = sh_msiof_spi_start(p, rx); |