]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: imx: introduce helper to clear DMA mode logic
authorCarlos Song <carlos.song@nxp.com>
Wed, 3 Dec 2025 08:59:45 +0000 (16:59 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 14 Dec 2025 10:38:48 +0000 (19:38 +0900)
commit5395bb7f7c361310d0f329c8169d2190809b05c1
tree908f819eb0b7c806d627494eee43eb64ca15b197
parentc64f62b036aed30626cb30fa82d3ec4a13fa83df
spi: imx: introduce helper to clear DMA mode logic

Add a helper function to handle clearing DMA mode, including getting the
maximum watermark length and submitting the DMA request. This refactoring
makes the code more concise and improves readability.
No functional changes.

Signed-off-by: Carlos Song <carlos.song@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20251203085949.2922166-3-carlos.song@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c