]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbbb58802bf0d717ee31c2022dfc638fff4577b99
treeefda200882eb8119236ddad94f2193316222f7e4
parent44b7e048dbfaf308ada34e1e7aaa2035f6d9f1a9
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