Skip to content

Commit d96760f

Browse files
tianacorebroonie
authored andcommitted
spi: s3c64xx: add missing check for polling mode
After the patch "spi/s3c64xx: Fix non-dmaengine usage" with commit id 563b444 submitted by Mark Brown, 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: Girish K S <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent ed89355 commit d96760f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/spi/spi-s3c64xx.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ static int s3c64xx_spi_prepare_transfer(struct spi_master *spi)
434434
dma_cap_mask_t mask;
435435
int ret;
436436

437+
if (is_polling(sdd))
438+
return 0;
439+
437440
dma_cap_zero(mask);
438441
dma_cap_set(DMA_SLAVE, mask);
439442

0 commit comments

Comments
 (0)