• Robin Gong's avatar
    spi: imx: move wml setting to later than setup_transfer · 987a2dfe
    Robin Gong authored
    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: default avatarRobin Gong <yibin.gong@nxp.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    987a2dfe
spi-imx.c 43.5 KB