spi: imx: use PIO mode if size is small
authorRobin Gong <yibin.gong@nxp.com>
Wed, 10 Oct 2018 10:32:48 +0000 (10:32 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 12 Oct 2018 16:54:02 +0000 (18:54 +0200)
commit133eb8e38b02c6c63a039523fca12737009a6686
treeefda200882eb8119236ddad94f2193316222f7e4
parent5ba5a3730639caddf42af11c60f3f3d99d9a5f00
spi: imx: use PIO mode if size is small

Use PIO mode instead if size is smaller than fifo size, since
dma may be less efficient.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c