Message ID | 20181012170122.C66EC440078@finisterre.ee.mobilebroadband (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Applied "spi: imx: use PIO mode if size is small" to the spi tree | expand |
diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 037abbb852a4..dd1ce12aa386 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c @@ -224,6 +224,9 @@ static bool spi_imx_can_dma(struct spi_master *master, struct spi_device *spi, if (spi_imx->slave_mode) return false; + if (transfer->len < spi_imx->devtype_data->fifo_size) + return false; + spi_imx->dynamic_burst = 0; return true;