From: Jaewon Kim Date: Wed, 10 May 2023 11:39:42 +0000 (+0900) Subject: spi: s3c64xx: Disable IRQ mode when using DMA X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=26cd10a0b9761bffd4669a429f8a33cbccef5bbd;p=linux.git 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) {