From 26cd10a0b9761bffd4669a429f8a33cbccef5bbd Mon Sep 17 00:00:00 2001 From: Jaewon Kim Date: Wed, 10 May 2023 20:39:42 +0900 Subject: [PATCH] spi: s3c64xx: Disable IRQ mode when using DMA Fixing the problem of enabling DMA mode and IRQ mode at the same time. In this case, a value of more than 6bits is written to RDY_LVL, it can cause an invasion of other registers, potentially leading to SPI transfer failure. Fixes: 1ee806718d5e ("spi: s3c64xx: support interrupt based pio mode") Signed-off-by: Jaewon Kim len > S3C64XX_SPI_POLLING_SIZE) + if (!use_dma && xfer->len > S3C64XX_SPI_POLLING_SIZE) use_irq = true; if (use_irq) { -- 2.50.1