[PATCH v3 00/13] dmaengine: introduce sg_nents_for_dma() and convert users

Andy Shevchenko andriy.shevchenko at linux.intel.com
Thu Nov 20 11:15:02 PST 2025


On Thu, Nov 13, 2025 at 04:12:56PM +0100, Andy Shevchenko wrote:
> A handful of the DMAengine drivers use same routine to calculate the number of
> SG entries needed for the given DMA transfer. Provide a common helper for them
> and convert.
> 
> I left the new helper on SG level of API because brief grepping shows potential
> candidates outside of DMA engine, e.g.:
> 
>   drivers/crypto/chelsio/chcr_algo.c:154:  nents += DIV_ROUND_UP(less, entlen);
>   drivers/spi/spi-stm32.c:1495:  /* Count the number of entries needed */

Vinod, what is your plan on the DMAengine patches? (Asking not only about this series)
Please, tell if anything needs to be done from my side to help them being pulled.

-- 
With Best Regards,
Andy Shevchenko





More information about the linux-arm-kernel mailing list