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>
This commit is contained in:
Carlos Song 2025-12-03 16:59:45 +08:00 • committed by Mark Brown
commit 5395bb7f7c
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0