Skip to content

Commit 9c27047

Browse files
Łukasz Stelmachgregkh
authored andcommitted
spi: spi-s3c64xx: swap s3c64xx_spi_set_cs() and s3c64xx_enable_datapath()
[ Upstream commit 581e2b4 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2d92aae commit 9c27047

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
@@ -678,11 +678,11 @@ static int s3c64xx_spi_transfer_one(struct spi_master *master,
678678
sdd->state &= ~RXBUSY;
679679
sdd->state &= ~TXBUSY;
680680

681-
s3c64xx_enable_datapath(sdd, xfer, use_dma);
682-
683681
/* Start the signals */
684682
s3c64xx_spi_set_cs(spi, true);
685683

684+
s3c64xx_enable_datapath(sdd, xfer, use_dma);
685+
686686
spin_unlock_irqrestore(&sdd->lock, flags);
687687

688688
if (use_dma)

0 commit comments

Comments
 (0)