[PATCH v2 1/1] spi: use dmaengine_desc_set_callback()

Florian Fainelli florian.fainelli at broadcom.com
Wed Nov 4 10:18:57 PST 2026



On 11/4/2026 7:22 AM, Frank.Li at oss.nxp.com wrote:
> From: Frank Li <Frank.Li at nxp.com>
> 
> Replace open-coded assignments to callback and callback_param fields
> of struct dma_async_tx_descriptor with calls to the
> dmaengine_desc_set_callback() helper across SPI bus drivers.
> 
> No functional change intended. Prepare make to struct
> dma_async_tx_descriptor private to the DMA engine.
> 
> Reviewed-by: Linus Walleij <linusw at kernel.org>
> Reviewed-by: Mukesh Kumar Savaliya <mukesh.savaliya at oss.qualcomm.com>
> Acked-by: Alain Volmat <alain.volmat at foss.st.com>
> Reviewed-by: Wolfram Sang <wsa+renesas at sang-engineering.com>
> Reviewed-by: Troy Mitchell <troy.mitchell at linux.spacemit.com>
> Reviewed-by: Kunihiko Hayashi <hayashi.kunihiko at socionext.com>
> Acked-by: Thierry Reding <treding at nvidia.com>
> Signed-off-by: Frank Li <Frank.Li at nxp.com>
> ---
> change in v2
> - add missed set_callback in rspi_dma_transfer() (sashiko
> - collect review by tags
> - drop void *
> ---
>   drivers/spi/atmel-quadspi.c       | 3 +--
>   drivers/spi/spi-at91-usart.c      | 3 +--
>   drivers/spi/spi-atcspi200.c       | 3 +--
>   drivers/spi/spi-atmel.c           | 3 +--
>   drivers/spi/spi-bcm2835.c         | 6 ++----

For the above:

Reviewed-by: Florian Fainelli <florian.fainelli at broadcom.com>
-- 
Florian




More information about the linux-riscv mailing list