public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Erick Henrique <erick.henrique.rodrigues@usp.br>
Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org,
	andriy.shevchenko@intel.com, linux-iio@vger.kernel.org
Subject: Re: [PATCH v3 0/2] iio: dac: m62332: Use guard(mutex) for locking
Date: Sun, 19 Apr 2026 13:11:56 +0100	[thread overview]
Message-ID: <20260419131156.033faee1@jic23-huawei> (raw)
In-Reply-To: <20260418130322.106769-1-erick.henrique.rodrigues@usp.br>

On Sat, 18 Apr 2026 10:03:20 -0300
Erick Henrique <erick.henrique.rodrigues@usp.br> wrote:

> This series refactors the m62332 driver to use guard(mutex) for
> simpler locking, preceded by a header cleanup as suggested by
> Andy Shevchenko.
> 
> Patch 1 applies IWYU to the header block, removes unused slab.h,
> and sorts the includes alphabetically.
> 
> Patch 2 replaces mutex_lock()/mutex_unlock() pairs with guard(mutex)
> and simplifies i2c_master_send() error handling. This patch also
> adds <linux/cleanup.h> which is required by the guard() macro.
> 
> Changes since v2:
> - Split into a two-patch series per Andy's suggestion
> - Added missing <linux/cleanup.h> include
> - Cleaned up header block (IWYU, alphabetical order)
> 
> Changes since v1:
> - Split combined condition in i2c_master_send() error handling
>   into two separate early returns
> 
> Signed-off-by: Erick Henrique <erick.henrique.rodrigues@usp.br>
> 
> Erick Henrique (2):
>   iio: dac: m62332: Clean up header includes
>   iio: dac: m62332: Use guard(mutex) for locking
> 
>  drivers/iio/dac/m62332.c | 31 +++++++++++++++----------------
>  1 file changed, 15 insertions(+), 16 deletions(-)
> 
Hi Erick,

A process comment.  Don't send new versions with the reply-to set.
They should be new threads not burried under an earlier discussion.
Combination of naming and version numbers is enough to associate
the versions though a nice convention is to also include a link
to the lore.kernel.org archive for the previous version.

One practical reason for this is many reviewers and maintainers
tend to catch up with their backlog starting with the latest
email threads (as often earlier versions have been superceeded!)
So I only found this 'in order' because I'm using patch work
as well for tracking purposes.

Thanks

Jonathan

      parent reply	other threads:[~2026-04-19 12:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-14 23:39 [PATCH] iio: dac: m62332: Use guard(mutex) for locking Erick Henrique
2026-04-15 10:20 ` Andy Shevchenko
2026-04-15 23:01 ` [PATCH v2] " Erick Henrique
2026-04-17  7:58   ` Andy Shevchenko
2026-04-17  7:59     ` Andy Shevchenko
2026-04-18 13:03 ` [PATCH v3 0/2] " Erick Henrique
2026-04-18 13:03   ` [PATCH v3 1/2] iio: dac: m62332: Clean up header includes Erick Henrique
2026-04-19 12:16     ` Jonathan Cameron
2026-04-18 13:03   ` [PATCH v3 2/2] iio: dac: m62332: Use guard(mutex) for locking Erick Henrique
2026-04-19 12:17     ` Jonathan Cameron
2026-04-19 13:49     ` Jonathan Cameron
2026-04-19 12:11   ` Jonathan Cameron [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=20260419131156.033faee1@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=erick.henrique.rodrigues@usp.br \
    --cc=linux-iio@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