From: Joshua Crofts <crofts@kernel.org>
To: Vaibhav Chahar <vaibhav.chahar26@gmail.com>,
Jonathan Cameron <jic23@kernel.org>
Cc: "Marius Cristea" <marius.cristea@microchip.com>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 0/2] iio: adc: Use guard(mutex) to manage locks
Date: Thu, 26 Nov 2026 14:26:59 +0100 [thread overview]
Message-ID: <511d9a1e-253c-4006-8a2e-3078c4aa9b64@kernel.org> (raw)
In-Reply-To: <20261126114433.20674-1-vaibhav.chahar26@gmail.com>
On 26-Nov-26 12:44, Vaibhav Chahar wrote:
> Convert mcp3564 and palmas_gpadc to use guard(mutex) instead of manual
> mutex_lock() and mutex_unlock() calls to simplify error handling paths.
>
> Changes in v4:
> - mcp3564: Drop blank lines before `if (ret)` checks and add blank lines
> after `guard(mutex)` in `mcp3564_read_raw()` to improve readibility.
> - palmas_gpadc: Move `palmas_gpadc_read_done()` inside
> `palmas_gpadc_read_raw_locked()` and drop unused `ret` from
> `palmas_gpadc_read_raw()`, moved conditional check inside
> `case IIO_EV_INFO_VALUE:`.
>
> Changes in v3:
> - mcp3564: Use of guard(mutex) across all paths. (Dropping __func__
> from dev_dbg() calls will follow in a separate patch.)
> - palmas_gpadc: Make helper function palmas_gpadc_read_raw_locked() so
> palmas_gpadc_read_done() always runs before unlocking safely.
>
> Changes in v2:
> - Patch 1 (mcp3564): Wrap switch cases containing guard() in braces,
> add blank lines around guard() calls, and clean up the commit message.
> - Patch 2 (palmas_gpadc): New patch converting palmas_gpadc calls to
> guard(mutex).
>
> Vaibhav Chahar (2):
> iio: adc: mcp3564: Use guard() to manage mutex
> iio: adc: palmas_gpadc: Use guard(mutex) to manage locks
>
For the series,
Reviewed-by: Joshua Crofts <crofts@kernel.org>
--
Kind regards,
Joshua Crofts
prev parent reply other threads:[~2026-11-26 13:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 11:44 Vaibhav Chahar
2026-11-26 11:44 ` [PATCH v4 1/2] iio: adc: mcp3564: Use guard() to manage mutex Vaibhav Chahar
2026-11-26 11:44 ` [PATCH v4 2/2] iio: adc: palmas_gpadc: Use guard(mutex) to manage locks Vaibhav Chahar
2026-11-26 13:26 ` Joshua Crofts
2026-11-26 13:26 ` Joshua Crofts [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=511d9a1e-253c-4006-8a2e-3078c4aa9b64@kernel.org \
--to=crofts@kernel.org \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marius.cristea@microchip.com \
--cc=nuno.sa@analog.com \
--cc=vaibhav.chahar26@gmail.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
all inboxes | Powered by JetHome®