mtd: spi-nor: cadence-quadspi: Add DMA support for direct mode reads
authorVignesh R <vigneshr@ti.com>
Tue, 10 Apr 2018 08:19:10 +0000 (13:49 +0530)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 20 Apr 2018 20:53:52 +0000 (22:53 +0200)
commitffa639e069fb55a150a2f14af6762b2c429e6d50
tree081f47aa29fadc98f5e19c6ac723d0337480fb91
parentc7aa1b77f96f3549ac71ac3eb631c8e47536bcf6
mtd: spi-nor: cadence-quadspi: Add DMA support for direct mode reads

Add support to use DMA over memory mapped reads in direct mode. This
helps in reducing CPU usage from ~100% to ~10% when reading data from
flash. For non-DMA'able/vmalloc'd buffers, driver just falls back to CPU
based memcpy.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/spi-nor/cadence-quadspi.c