OSDN Git Service

spi: spi-fsl-dspi: set ColdFire to DMA mode
authorAngelo Dureghello <angelo.dureghello@timesys.com>
Sun, 16 Aug 2020 09:46:35 +0000 (11:46 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 18 Aug 2020 16:52:38 +0000 (17:52 +0100)
Set DMA transfer mode for ColdFire.

After recent fixes to fsl edma engine, this mode can be used
also for ColdFire, and from some raw mtd r/w tests it definitely
improves the transfer rate, so keeping it selected.

Signed-off-by: Angelo Dureghello <angelo.dureghello@timesys.com>
Link: https://lore.kernel.org/r/20200816094635.1830006-1-angelo.dureghello@timesys.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c

index 91c6aff..5b9a285 100644 (file)
@@ -189,7 +189,7 @@ static const struct fsl_dspi_devtype_data devtype_data[] = {
                .fifo_size              = 4,
        },
        [MCF5441X] = {
-               .trans_mode             = DSPI_EOQ_MODE,
+               .trans_mode             = DSPI_DMA_MODE,
                .max_clock_factor       = 8,
                .fifo_size              = 16,
        },