public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: David Lechner <dlechner@baylibre.com>
Cc: "David Carlier" <devnexen@gmail.com>,
	linux-iio@vger.kernel.org, "Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Lars-Peter Clausen" <lars@metafoo.de>,
	"Michael Hennerich" <Michael.Hennerich@analog.com>,
	"Kim Seer Paller" <kimseer.paller@analog.com>,
	"Cosmin Tanislav" <cosmin.tanislav@analog.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/7] iio: dac: Convert several drivers to devm_mutex_init()
Date: Mon, 20 Apr 2026 14:21:58 +0100	[thread overview]
Message-ID: <20260420142158.2d8b05e9@jic23-huawei> (raw)
In-Reply-To: <60c2cdbc-2ee3-49ce-8a94-590230899cbc@baylibre.com>

On Fri, 10 Apr 2026 15:03:33 -0500
David Lechner <dlechner@baylibre.com> wrote:

> On 4/10/26 2:37 PM, David Carlier wrote:
> > 
> > This series converts seven iio DAC/ADDAC drivers to use devm_mutex_init()
> > instead of mutex_init(). These drivers currently call mutex_init() in
> > probe but have no .remove() callback, so mutex_destroy() is never called
> > on device unbind.
> > 
> > Same pattern already accepted in iio for other drivers (e.g. ad5446,
> > ltc2688, ad7124, ad7606, vcnl4000, etc.).
> > 
> > David Carlier (7):
> >   iio: dac: ad3552r: Use devm_mutex_init()
> >   iio: dac: ad7303: Use devm_mutex_init()
> >   iio: dac: ad5758: Use devm_mutex_init()
> >   iio: dac: ad5755: Use devm_mutex_init()
> >   iio: dac: ad5686: Use devm_mutex_init()
> >   iio: dac: ltc2664: Use devm_mutex_init()
> >   iio: addac: ad74115: Use devm_mutex_init()
> >   
> 
> Jonathan has mentioned before that he doesn't care to take patches like this
> unless we are making other cleanups to the driver too. So we'll see what he
> says this time.
> 

The one time I'm more flexible on taking small changes is when they come
from someone new to the kernel.  A quick look suggests that's not quite true
of David, but David also doesn't seem to be an old hand.  So I'll take
this set, but no more of these please unless part of a more general
cleanup of a driver.  Maybe at somepoint in the future we'll have few enough
of these that it makes sense to do this for all of them, but right now there
are ~300 mutex_init() calls in IIO and don't want anywhere near that level
of churn when there are more useful things to do!

Applied to the testing branch of iio.git.

Thanks,

Jonathan

  reply	other threads:[~2026-04-20 13:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-10 19:37 [PATCH 0/7] iio: dac: Convert several drivers to devm_mutex_init() David Carlier
2026-04-10 19:37 ` [PATCH 1/7] iio: dac: ad3552r: Use devm_mutex_init() David Carlier
2026-04-10 19:37 ` [PATCH 2/7] iio: dac: ad7303: " David Carlier
2026-04-10 19:37 ` [PATCH 3/7] iio: dac: ad5758: " David Carlier
2026-04-10 19:37 ` [PATCH 4/7] iio: dac: ad5755: " David Carlier
2026-04-10 19:37 ` [PATCH 5/7] iio: dac: ad5686: " David Carlier
2026-04-10 19:37 ` [PATCH 6/7] iio: dac: ltc2664: " David Carlier
2026-04-10 19:37 ` [PATCH 7/7] iio: addac: ad74115: " David Carlier
2026-04-10 20:03 ` [PATCH 0/7] iio: dac: Convert several drivers to devm_mutex_init() David Lechner
2026-04-20 13:21   ` Jonathan Cameron [this message]
2026-04-20 13:39     ` David CARLIER

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=20260420142158.2d8b05e9@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=Michael.Hennerich@analog.com \
    --cc=andy@kernel.org \
    --cc=cosmin.tanislav@analog.com \
    --cc=devnexen@gmail.com \
    --cc=dlechner@baylibre.com \
    --cc=kimseer.paller@analog.com \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    /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