From: Mark Brown <broonie@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Markus Elfring <Markus.Elfring@web.de>,
imx@lists.linux.dev, linux-spi@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de,
Fabio Estevam <festevam@gmail.com>, Frank Li <Frank.Li@nxp.com>,
Johan Hovold <johan@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
LKML <linux-kernel@vger.kernel.org>,
kernel-janitors@vger.kernel.org,
Christophe Jaillet <christophe.jaillet@wanadoo.fr>,
Florian Fainelli <f.fainelli@gmail.com>,
Michal Simek <michal.simek@amd.com>
Subject: Re: spi: imx: Use devm_clk_get_enabled() calls in spi_imx_probe()
Date: Mon, 23 Nov 2026 19:02:39 +0000 [thread overview]
Message-ID: <1292bc63-f689-4e93-bf90-aa495431cb0d@sirena.org.uk> (raw)
In-Reply-To: <awSKzgNGzuxl2OXO@ashevche-desk.local>
[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]
On Mon, Nov 23, 2026 at 08:49:50PM +0200, Andy Shevchenko wrote:
> On Mon, Nov 23, 2026 at 07:24:21PM +0100, Markus Elfring wrote:
> > >> * Reuse existing functionality from devm_clk_get_enabled() instead of
> > >> keeping duplicate source code.
> > >>
> > >> * Delete clk_disable_unprepare() calls on error handling paths.
> > >>
> > >> * Omit the label “out_put_per”.
> > >>
> > >> This issue was detected by using the Coccinelle software.
> > >
> > > This now messes up with the PM callbacks at remove stage.
> > > It's not trivial how to make it correct.
> > Is there a need to adjust and extend devres programming interfaces any more?
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/driver-api/driver-model/devres.rst?h=v7.4-rc4#n242
>
> I guess you did get my point. You can't simply do what you have done in this
> patch, because the devm*() will do something with clock reference counting on
> remove stage _after_ the driver.
Feel free to ignore Markus, he has a long history of sending
unhelpful review comments and continues to ignore repeated requests
to stop.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2026-11-23 19:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 16:23 [PATCH] " Markus Elfring
2026-11-23 17:27 ` Andy Shevchenko
2026-11-23 18:24 ` Markus Elfring
2026-11-23 18:49 ` Andy Shevchenko
2026-11-23 19:02 ` Mark Brown [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=1292bc63-f689-4e93-bf90-aa495431cb0d@sirena.org.uk \
--to=broonie@kernel.org \
--cc=Frank.Li@nxp.com \
--cc=Markus.Elfring@web.de \
--cc=andriy.shevchenko@linux.intel.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=f.fainelli@gmail.com \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=johan@kernel.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=michal.simek@amd.com \
--cc=s.hauer@pengutronix.de \
/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
all inboxes | Powered by JetHome®