Skip to content

Commit 581e2b4

Browse files
Łukasz Stelmachbroonie
authored andcommitted
spi: spi-s3c64xx: swap s3c64xx_spi_set_cs() and s3c64xx_enable_datapath()
Fix issues with DMA transfers bigger than 512 bytes on Exynos3250. Without the patches such transfers fail to complete. This solution to the problem is found in the vendor kernel for ARTIK5 boards based on Exynos3250. Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com> Link: https://lore.kernel.org/r/20201002122243.26849-2-l.stelmach@samsung.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 184ec01 commit 581e2b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/spi/spi-s3c64xx.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,11 +685,11 @@ static int s3c64xx_spi_transfer_one(struct spi_master *master,
685685
sdd->state &= ~RXBUSY;
686686
sdd->state &= ~TXBUSY;
687687

688-
s3c64xx_enable_datapath(sdd, xfer, use_dma);
689-
690688
/* Start the signals */
691689
s3c64xx_spi_set_cs(spi, true);
692690

691+
s3c64xx_enable_datapath(sdd, xfer, use_dma);
692+
693693
spin_unlock_irqrestore(&sdd->lock, flags);
694694

695695
if (use_dma)

0 commit comments

Comments
 (0)