From: Markus Elfring <Markus.Elfring@web.de>
To: Jiawen Liu <1298662399@qq.com>,
dmaengine@vger.kernel.org, linux-mips@vger.kernel.org,
Paul Cercueil <paul@crapouillou.net>,
Vinod Koul <vkoul@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
kernel-janitors@vger.kernel.org,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Christophe Jaillet <christophe.jaillet@wanadoo.fr>,
Fabio Estevam <festevam@gmail.com>,
Florian Fainelli <f.fainelli@gmail.com>,
Frank Li <Frank.Li@kernel.org>,
"H. Nikolaus Schaller" <hns@goldelico.com>
Subject: Re: [PATCH] dmaengine: jz4780: handle clock enable failures
Date: Sun, 29 Nov 2026 20:10:18 +0100 [thread overview]
Message-ID: <5ed1b2e2-bafe-4932-b615-7dc6d3bc48ee@web.de> (raw)
In-Reply-To: <tencent_FA750B9CEA00B77EDF2A0FEA5F8BBE20B509@qq.com>
> jz4780_dma_probe() ignores the result of clk_prepare_enable() and
> continues to configure controller registers, request resources, and
> register the DMA controller. A parent-clock failure can therefore publish
> a controller without a successful clock activation. Later probe cleanup
> can also attempt to disable a clock that was never enabled.
>
> Propagate the activation error before touching the controller.
How do you think about to reuse the function “devm_clk_get_enabled”?
https://elixir.bootlin.com/linux/v7.4-rc2/source/include/linux/clk.h#L615-L632
https://elixir.bootlin.com/linux/v7.4-rc2/source/drivers/dma/dma-jz4780.c#L898-L905
Regards,
Markus
prev parent reply other threads:[~2026-11-29 19:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 12:53 [PATCH] dmaengine: jz4780: handle clock enable failures Jiawen Liu
2026-11-29 14:50 ` H. Nikolaus Schaller
2026-11-29 19:10 ` Markus Elfring [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=5ed1b2e2-bafe-4932-b615-7dc6d3bc48ee@web.de \
--to=markus.elfring@web.de \
--cc=1298662399@qq.com \
--cc=Frank.Li@kernel.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=dmaengine@vger.kernel.org \
--cc=f.fainelli@gmail.com \
--cc=festevam@gmail.com \
--cc=hns@goldelico.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=paul@crapouillou.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.