]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Dec 2025 17:37:19 +0000 (18:37 +0100)
commit5daaca0150db853253d53a812914b319e8439b34
tree12b20d0da9d743b28f507e5a64d7e673106bd5c7
parenta215b8db00b5133fa77c569e3779ab0987d21c9d
spi: imx: keep dma request disabled before dma transfer setup

[ Upstream commit 86d57d9c07d54e8cb385ffe800930816ccdba0c1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-imx.c