[PATCH 1/3] i2c: at91: release DMA channels on remove and probe error
Mukesh Savaliya
mukesh.savaliya at oss.qualcomm.com
Mon Aug 31 02:11:19 PDT 2026
On 8/27/2026 9:13 PM, Shengzhuo Wei wrote:
> at91_twi_configure_dma() requests exclusive tx/rx DMA channels, but
> nothing ever releases them on driver detach, and the probe error path
> after the channels are acquired (i2c_add_numbered_adapter() failure)
> returns without releasing them either, because the remove callback is
> not invoked after a failed probe.
>
> Move the release into a helper, call it from the existing
> configure-failure path, the adapter-registration failure path, and
> at91_twi_remove().
>
> Fixes: 60937b2cdbf9 ("i2c: at91: add dma support")
> Cc: stable at vger.kernel.org
> Signed-off-by: Shengzhuo Wei <me at cherr.cc>
> Assisted-by: GLM:5.3
> ---
Acked-by: Mukesh Kumar Savaliya <mukesh.savaliya at oss.qualcomm.com>
More information about the linux-arm-kernel
mailing list