Re: [PATCH] i2c: at91: release DMA channels when probe defers

From: Andi Shyti

Date: Thu Oct 01 2026 - 18:37:13 EST


Hi Hongjian,

On Wed, Sep 30, 2026 at 12:43:40AM +0800, Hongjian Dai wrote:
> at91_twi_probe_master() can return -EPROBE_DEFER from
> at91_init_twi_recovery_info() after at91_twi_configure_dma() has already
> claimed the tx/rx DMA channels. at91_twi_probe() then returns without
> releasing them, and since dma_request_chan() is not devres-managed the
> channels leak on every deferred probe attempt.
>
> Release the channels before deferring the probe.
>
> Fixes: f7eeb1af8537 ("i2c: at91: release DMA channels on remove and probe error")
> Assisted-by: LLM
> Signed-off-by: Hongjian Dai <daihongjian@xxxxxxxxxxxxxxx>

pushed to i2c/i2c-fixes.

Thanks,
Andi