Message ID | 1344952177-18385-18-git-send-email-richard.genoud@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index d629422..0899da2 100644 --- a/drivers/spi/spi-atmel.c +++ b/drivers/spi/spi-atmel.c @@ -638,7 +638,8 @@ static void atmel_spi_next_xfer(struct spi_master *master, as->current_transfer = xfer; - if (atmel_spi_use_dma(xfer)) { + /* quick (and *really* not optimal) workaround for DMA BUG */ + if (atmel_spi_use_dma(xfer) && (xfer->len < BUFFER_SIZE)) { if (!atmel_spi_next_xfer_dma(master, xfer)) return; else