]> git.baikalelectronics.ru Git - kernel.git/commit
spi: imx: move wml setting to later than setup_transfer
authorRobin Gong <yibin.gong@nxp.com>
Wed, 10 Oct 2018 10:32:42 +0000 (10:32 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 12 Oct 2018 16:54:00 +0000 (18:54 +0200)
commit8529c0eea8baeb62217f09658f328cfa0ba8e423
tree78d69aabe52d5538bd1c3a6f5e9237bfca965d24
parent1e1d9d44bda201c0fbbc735cc848dc037f6374a4
spi: imx: move wml setting to later than setup_transfer

Current dynamic burst length is based on the whole transfer length,
that's ok if there is only one sg, but is not right in case multi sgs
in one transfer,because the tail data should be based on the last sg
length instead of the whole transfer length. Move wml setting for DMA
to the later place, thus, the next patch could get the right last sg
length for wml setting. This patch is a preparation one, no any
function change involved.

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