All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Piyush Patle <piyushpatle228@gmail.com>
Cc: linux-iio@vger.kernel.org,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Daniel Lezcano" <daniel.lezcano@kernel.org>,
	"Alexandru-Catalin Ionita" <alexandru-catalin.ionita@nxp.com>,
	"Felix Gu" <ustc.gu@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] iio: adc: nxp-sar-adc: use field_get() for EOC bit check
Date: Mon, 20 Apr 2026 14:10:56 +0100	[thread overview]
Message-ID: <20260420141056.2075cbac@jic23-huawei> (raw)
In-Reply-To: <CAMB+xkb+R2ODUx+dn3W5k5+3-QbH5PSxE1hcET_hLrRk7QQe3Q@mail.gmail.com>

On Sun, 19 Apr 2026 22:30:19 +0530
Piyush Patle <piyushpatle228@gmail.com> wrote:

> On Sat, Apr 11, 2026 at 7:53 PM Daniel Lezcano
> <daniel.lezcano@oss.qualcomm.com> wrote:
> >
> > On 4/10/26 23:41, Piyush Patle wrote:  
> > > Use field_get() here now that runtime-mask support exists, and drop
> > > the obsolete TODO. Since NXP_SAR_ADC_EOC_CH(c) is BIT(c), the
> > > resulting !-test is semantically identical.
> > >
> > > No functional change.
> > >
> > > Reviewed-by: David Lechner <dlechner@baylibre.com>
> > > Signed-off-by: Piyush Patle <piyushpatle228@gmail.com>  
> >
> > Acked-by: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Applied. Thanks,

J
> >  
> > > ---
> > >   drivers/iio/adc/nxp-sar-adc.c | 6 +-----
> > >   1 file changed, 1 insertion(+), 5 deletions(-)
> > >
> > > diff --git a/drivers/iio/adc/nxp-sar-adc.c b/drivers/iio/adc/nxp-sar-adc.c
> > > index 58103bf16aff..d6c2a0d50bb4 100644
> > > --- a/drivers/iio/adc/nxp-sar-adc.c
> > > +++ b/drivers/iio/adc/nxp-sar-adc.c
> > > @@ -316,11 +316,7 @@ static int nxp_sar_adc_read_data(struct nxp_sar_adc *info, unsigned int chan)
> > >
> > >       ceocfr = readl(NXP_SAR_ADC_CEOCFR0(info->regs));
> > >
> > > -     /*
> > > -      * FIELD_GET() can not be used here because EOC_CH is not constant.
> > > -      * TODO: Switch to field_get() when it will be available.
> > > -      */
> > > -     if (!(NXP_SAR_ADC_EOC_CH(chan) & ceocfr))
> > > +     if (!field_get(NXP_SAR_ADC_EOC_CH(chan), ceocfr))
> > >               return -EIO;
> > >
> > >       cdr = readl(NXP_SAR_ADC_CDR(info->regs, chan));  
> >  
> 
> Hi,
> Gentle ping on this patch.
> 
> I’d appreciate any feedback whenever you get time, or let me know if I
> should resend/rework anything.
> 
> Regards,
> Piyush


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

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-13  9:50 [PATCH] selftests/cgroup: conform test to TAP format output Guopeng Zhang
2025-11-13 10:45 ` Michal Koutný
2025-11-14  3:55   ` Guopeng Zhang
2026-04-10 21:41     ` [PATCH v2] iio: adc: nxp-sar-adc: use field_get() for EOC bit check Piyush Patle
2026-04-11 14:23       ` Daniel Lezcano
2026-04-19 17:00         ` Piyush Patle
2026-04-20 13:10           ` Jonathan Cameron [this message]
     [not found]   ` <6916a904.9d0a0220.2b5e5.0b79SMTPIN_ADDED_BROKEN@mx.google.com>
2025-11-14  7:04     ` [PATCH] selftests/cgroup: conform test to TAP format output Sebastian Chlad
2025-11-14  9:19       ` Guopeng Zhang
     [not found]   ` <6916a8f5.050a0220.23bb4.ab7dSMTPIN_ADDED_BROKEN@mx.google.com>
2025-11-14 14:32     ` Michal Koutný
2025-11-15  3:43       ` Guopeng Zhang

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=20260420141056.2075cbac@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=alexandru-catalin.ionita@nxp.com \
    --cc=andy@kernel.org \
    --cc=daniel.lezcano@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=piyushpatle228@gmail.com \
    --cc=ustc.gu@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.