MLK-25465-2 tty: serial: imx: keep dma request not enable before dma transfer setup
authorRobin Gong <yibin.gong@nxp.com>
Thu, 8 Apr 2021 17:01:49 +0000 (01:01 +0800)
committerRobin Gong <yibin.gong@nxp.com>
Wed, 28 Apr 2021 13:16:18 +0000 (21:16 +0800)
commite8476e38b02bb72d33e887e93f35106154bf1add
treea83c1b538c6a8f61fac10aade3cfbab4d3e80a2c
parent111097595c1cde62f3effc55e3e0abeb754243e6
MLK-25465-2 tty: serial: imx: keep dma request not enable 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 (event enabled
in imx_uart_dma_init() before where's ahead of dma request enable):

"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 cfc4e2c81de12a55414240e0da90a709ac929c3f)
drivers/tty/serial/imx.c