Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f4b3238 authored by Girish K S's avatar Girish K S Committed by Mark Brown
Browse files

spi: s3c64xx: add missing check for polling mode



Due to changes in mainline prior to submission the spi device detection
in polling mode breaks. This revealed the missing check for polling
during dma prepare. This patch adds the missing check.

Signed-off-by: default avatarGirish K S <ks.giri@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent ad81f054
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -434,6 +434,9 @@ static int s3c64xx_spi_prepare_transfer(struct spi_master *spi)
	dma_cap_mask_t mask;
	int ret;

	if (is_polling(sdd))
		return 0;

	dma_cap_zero(mask);
	dma_cap_set(DMA_SLAVE, mask);