MLK-25465-4 spi: imx: keep dma request disabled before dma transfer setup
authorRobin Gong <yibin.gong@nxp.com>
Fri, 9 Apr 2021 10:07:16 +0000 (18:07 +0800)
committerRobin Gong <yibin.gong@nxp.com>
Wed, 28 Apr 2021 13:17:02 +0000 (21:17 +0800)
commit383979c0e7a61ec0ce3fe24bee1c6f62e018bb72
tree97942c7db0fc23e5244974cf568a942b766f4916
parent8875535fb8eda1be4470b20b6ac044012d79867b
MLK-25465-4 spi: imx: keep dma request disabled before dma transfer setup

Since sdma hardware configure postpone to transfer phase, have to disable
dma request on uart driver before dma transfer setup because there is
a hardware limitation on sdma event enable(ENBLn) as below:

"It is thus essential for the Arm platform to program them before any DMA
 request is triggered to the SDMA, otherwise an unpredictable combination
 of channels may be started."

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit 835afd7712926454edce6f9915a5f7f3a9cf782e)
drivers/spi/spi-imx.c