]> git.ipfire.org Git - thirdparty/linux.git/commit
spi: imx: keep dma request disabled before dma transfer setup
authorRobin Gong <yibin.gong@nxp.com>
Fri, 24 Oct 2025 05:53:20 +0000 (13:53 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 6 Nov 2025 13:13:57 +0000 (13:13 +0000)
commit86d57d9c07d54e8cb385ffe800930816ccdba0c1
treea5dc04af3235739411ae33707eb6924dee61e9d2
parent3cd2018e15b3d66d2187d92867e265f45ad79e6f
spi: imx: keep dma request disabled before dma transfer setup

Since sdma hardware configure postpone to transfer phase, have to disable
dma request 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: Carlos Song <carlos.song@nxp.com>
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Link: https://patch.msgid.link/20251024055320.408482-1-carlos.song@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c