mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joshua Crofts <crofts@kernel.org>
To: Vaibhav Chahar <vaibhav.chahar26@gmail.com>,
	jic23@kernel.org, marius.cristea@microchip.com
Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 0/2] iio: adc: Use cleanup.h guards for mutex locking
Date: Tue, 24 Nov 2026 09:21:52 +0100	[thread overview]
Message-ID: <6c9a0f83-b355-4256-8b38-7ecd57cbd64a@kernel.org> (raw)
In-Reply-To: <20261123172836.130440-1-vaibhav.chahar26@gmail.com>

On 23-Nov-26 18:28, Vaibhav Chahar wrote:
> Modernize mutex locking in the mcp3564 and palmas_gpadc ADC drivers by
> replacing manual mutex_lock() and mutex_unlock() calls with cleanup.h
> guard(mutex) and scoped_guard() helpers.
> 
> 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() and scoped_guard() to manage mutex
>   iio: adc: palmas_gpadc: Use guard(mutex) to manage locks
> 
>  drivers/iio/adc/mcp3564.c      | 63 +++++++++++++++++++---------------
>  drivers/iio/adc/palmas_gpadc.c | 46 +++++++++----------------
>  2 files changed, 53 insertions(+), 56 deletions(-)
> 

Also, please don't send a v2 as a reply to v1. It hides your series
in people's inboxes and may potentially break tooling like b4.

-- 
Kind regards,
Joshua Crofts

      parent reply	other threads:[~2026-11-24  8:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  7:08 [PATCH] iio: adc: mcp3564: Use guard() and scoped_guard() to manage mutex Vaibhav Chahar
2026-11-23 15:22 ` Joshua Crofts
2026-11-23 17:28 ` [PATCH v2 0/2] iio: adc: Use cleanup.h guards for mutex locking Vaibhav Chahar
2026-11-23 17:28   ` [PATCH v2 1/2] iio: adc: mcp3564: Use guard() and scoped_guard() to manage mutex Vaibhav Chahar
2026-11-23 19:05     ` Andy Shevchenko
2026-11-23 17:28   ` [PATCH v2 2/2] iio: adc: palmas_gpadc: Use guard(mutex) to manage locks Vaibhav Chahar
2026-11-23 19:10     ` Andy Shevchenko
2026-11-24  8:21   ` 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=6c9a0f83-b355-4256-8b38-7ecd57cbd64a@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®