Fix tx/rx mixup, which broke transmit-only transfers. Introduced by commit 4240305f7cbdc7782aa8bc40cc702775d9ac0839 ("spi: sh-msiof: Fix leaking of unused DMA descriptors").
Unified · Split
| @@ -693,9 +693,9 @@ static int sh_msiof_dma_once(struct sh_msiof_spi_priv *p, const void *tx, · 692 unmodified lines | ||
| 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); |