Re: [PATCH v2] dmaengine: dw-axi-dmac: convert clock handling to clk_bulk API

From: Vinod Koul

Date: Thu Sep 03 2026 - 13:13:10 EST



On Sun, 16 Aug 2026 05:48:58 +0000, Chaithanya Lagisetty wrote:
> The driver managed its two mandatory clocks (core-clk and cfgr-clk)
> individually. This was error prone: axi_dma_resume() enabled cfgr_clk
> and then core_clk, and if enabling core_clk failed it returned the
> error without disabling cfgr_clk, leaving the clock refcount
> unbalanced.
>
> Convert the driver to the clk_bulk API. The two clocks are always
> acquired, enabled and disabled together, so a clk_bulk_data array
> expresses this naturally and shrinks the get/enable/disable paths.
> clk_bulk_prepare_enable() also unwinds any clock it already enabled
> when a later one fails, which fixes the resume imbalance.
>
> [...]

Applied, thanks!

[1/1] dmaengine: dw-axi-dmac: convert clock handling to clk_bulk API
commit: 110126f425c34a2b189e10e74eec7644e1b47827

Best regards,
--
~Vinod