[PATCH 1/1] i2c: imx-lpi2c: remove dmaengine_desc_free()

Andi Shyti andi.shyti at kernel.org
Tue Oct 13 07:33:54 PDT 2026


Hi Frank,

On Tue, Sep 29, 2026 at 03:06:05PM -0400, Frank.Li at oss.nxp.com wrote:
> From: Frank Li <Frank.Li at nxp.com>
> 
> dmaengine_desc_free() is designed for DMA_CTRL_REUSE. If DMA_CTRL_REUSE
> is not set, dmaengine_desc_free() will return -EPERM.
> 
> 	if (!dmaengine_desc_test_reuse(desc))
> 		return -EPERM;
> 
> So calling dmaengine_desc_free() does nothing. dmaengine_terminate_(a)sync()
> will free all already allocated descriptors.
> 
> Signed-off-by: Frank Li <Frank.Li at nxp.com>

pushed to i2c/i2c.

Thanks,
Andi



More information about the linux-arm-kernel mailing list