commit | 66459c5a50a787c474b734b586328f7111ab6df0 | [log] [tgz] |
---|---|---|
author | Jiada Wang <jiada_wang@mentor.com> | Fri Jan 06 04:22:18 2017 -0800 |
committer | Mark Brown <broonie@kernel.org> | Fri Jan 06 18:09:22 2017 +0000 |
tree | 88df0f0674456138bfc9842585e371ee8b82fe82 | |
parent | fafd67940774733fa97f4b09412aea6981b82e0a [diff] |
spi: imx: adjust watermark level according to transfer length Previously DMA watermark level is configured to fifosize/2, DMA mode can be used only when transfer length can be divided by 'watermark level * bpw', which makes DMA mode not pratical. This patch adjusts watermark level to largest number (no bigger than fifosize/2) which can divide 'tranfer length / bpw' for each transfer. Signed-off-by: Jiada Wang <jiada_wang@mentor.com> Signed-off-by: Mark Brown <broonie@kernel.org>