]> asedeno.scripts.mit.edu Git - linux.git/commit
spi: sh-msiof: Use DMA if possible
authorHoan Nguyen An <na-hoan@jinso.co.jp>
Fri, 18 Jan 2019 09:29:31 +0000 (18:29 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 18 Jan 2019 18:20:52 +0000 (18:20 +0000)
commitd05e3eadb1bccbf276742e13b2c898959c310ce6
treeec9948c58091cf2345f465736434d03d1696d378
parentf70351ae06af0ccb1f7f91b86395ae5eba9c3c8c
spi: sh-msiof: Use DMA if possible

Currently, this driver only supports feature for DMA 32-bits.
In this case, only if the data length is divisible by 4 to use
DMA, otherwise PIO will be used. This patch will suggest use
the DMA 32-bits with 4bytes of words, then the remaining data
will be transmitted by PIO mode.

Signed-off-by: Hoan Nguyen An <na-hoan@jinso.co.jp>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sh-msiof.c