Skip to content

Commit 1fdaf87

Browse files
committed
spi: atmel-quadspi: (workaround) Always use DMA on sama7g5
Bus errors were seen when using mmiocpy with a flavor of mx66lm1g45g. Set the DMA treshold to zero so that we always use DMA for data transfers. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
1 parent 56c24d7 commit 1fdaf87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/spi/atmel-quadspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
#define QSPI_CALIB_TIME 2000 /* 2 us */
231231

232232
/* Use PIO for small transfers. */
233-
#define ATMEL_QSPI_DMA_MIN_BYTES 16
233+
#define ATMEL_QSPI_DMA_MIN_BYTES 0
234234
/**
235235
* struct atmel_qspi_pcal - Pad Calibration Clock Division
236236
* @pclk_rate: peripheral clock rate.

0 commit comments

Comments
 (0)