[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aSXOGLSN0bXw1nSw@lizhi-Precision-Tower-5810>
Date: Tue, 25 Nov 2025 10:41:12 -0500
From: Frank Li <Frank.li@....com>
To: Carlos Song <carlos.song@....com>
Cc: broonie@...nel.org, hawnguo@...nel.org, s.hauer@...gutronix.de,
kernel@...gutronix.de, festevam@...il.com,
linux-spi@...r.kernel.org, imx@...ts.linux.dev,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/6] spi: imx: introduce helper to clear DMA mode logic
On Tue, Nov 25, 2025 at 06:06:14PM +0800, Carlos Song wrote:
> 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.
spi: imx: introduce helper functions to improve readability
Add helper functions spi_imx_dma_submit() and spi_imx_dma_max_wml_find() to
improve readability and prepare to add more complex logic for dynamic burst
length calculation.
No functional changes.
Reviewed-by: Frank Li <Frank.Li@....com>
>
> Signed-off-by: Carlos Song <carlos.song@....com>
> ---
> drivers/spi/spi-imx.c | 164 +++++++++++++++++++++++-------------------
> 1 file changed, 92 insertions(+), 72 deletions(-)
>
...
>
> return 0;
> /* fallback to pio */
> --
> 2.34.1
>
Powered by blists - more mailing lists