From: "李佑鸿 " <dayou5941@163.com>
To: "Vinod Koul" <vkoul@kernel.org>
Cc: Eugeniy.Paltsev@synopsys.com, Frank.Li@kernel.org,
dmaengine@vger.kernel.org, "Li Youhong" <liyouhong@kylinos.cn>,
"Frank Li" <Frank.Li@nxp.com>
Subject: Re:Re: [PATCH v4] dmaengine: dw-axi-dmac: convert to clk bulk APIs
Date: Thu, 10 Sep 2026 10:46:27 +0800 (CST) [thread overview]
Message-ID: <590e2040.293c.1a089359df2.Coremail.dayou5941@163.com> (raw)
In-Reply-To: <aqFQHtOhhPOEmh8E@parshuram>
Hi Vinod,
Thanks for the review.
At 2026-09-09 20:25:02, "Vinod Koul" <vkoul@kernel.org> wrote:
>On 03-09-26, 09:54, Li Youhong wrote:
>> From: Li Youhong <liyouhong@kylinos.cn>
>>
>> axi_dma_resume() enables cfgr_clk then core_clk. If enabling
>> core_clk fails, return without disabling cfgr_clk, leaking the
>> already-enabled clock.
>>
>> Switch both clocks to the clk bulk helpers so prepare/enable
>> failures roll back automatically, and update probe/remove/
>> suspend/resume accordingly.
>>
>> In dw_remove(), check clk_bulk_prepare_enable(). On failure skip
>> MMIO and the matching disable to avoid unbalanced clk disable;
>> always continue with IRQ/OF/tasklet teardown.
>
>Hey, this doesnot apply against current code, can you rebase and send
When I rebased onto the dmaengine/next branch, I found this issue has already been fixed by commit:
c843417e6d6b ("dmaengine: dw-axi-dmac: convert clock handling to clk_bulk API")
So I will drop this patch series.
>>
>> Fixes: 1fe20f1b8454 ("dmaengine: Introduce DW AXI DMAC driver")
>
>why is this a fix?
>
Regarding the Fixes tag: starting from commit 1fe20f1b8454, axi_dma_resume() enables cfgr_clk
first and then core_clk. If enabling core_clk fails, the function returns immediately without
disabling the already enabled cfgr_clk. That is why I referenced that Fixes commit. Now that
c843417e6d6b is in mainline, my patch is no longer needed.
Sorry for the noise.
Thanks,
Li Youhong
>--
>~Vinod
prev parent reply other threads:[~2026-09-10 2:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-03 1:54 [PATCH v4] dmaengine: dw-axi-dmac: convert to clk bulk APIs Li Youhong
2026-09-03 2:06 ` sashiko-bot
2026-09-04 15:45 ` Frank Li
2026-09-09 12:25 ` Vinod Koul
2026-09-10 2:46 ` 李佑鸿 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=590e2040.293c.1a089359df2.Coremail.dayou5941@163.com \
--to=dayou5941@163.com \
--cc=Eugeniy.Paltsev@synopsys.com \
--cc=Frank.Li@kernel.org \
--cc=Frank.Li@nxp.com \
--cc=dmaengine@vger.kernel.org \
--cc=liyouhong@kylinos.cn \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox