Linux IIO development
 help / color / mirror / Atom feed
From: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: "Nikhil Gautam" <nikhilgtr@gmail.com>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Stefan Windfeldt-Prytz" <stefan.windfeldt-prytz@axis.com>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 0/4] iio: light: opt4001: Fixes from code review
Date: Mon, 20 Jul 2026 03:24:58 +0100	[thread overview]
Message-ID: <20260720032458.0862edf5@jic23-huawei> (raw)
In-Reply-To: <alYvMZgCu5uLXodL@ashevche-desk.local>

On Tue, 14 Jul 2026 15:44:33 +0300
Andy Shevchenko <andriy.shevchenko@intel.com> wrote:

> On Tue, Jul 14, 2026 at 05:01:30PM +0530, Nikhil Gautam wrote:
> > Hi,
> > 
> > This series fixes a number of issues found while reviewing the opt4001
> > driver. All of them date back to the initial submission of the driver
> > in commit 9a9608418292 ("iio: light: Add support for TI OPT4001 light
> > sensor").
> > 
> > Patch 1 fixes the power down path, which read the device ID register
> > instead of the control register in a read-modify-write, corrupting the
> > CTRL configuration on the way to power down.
> > 
> > Patch 2 fixes an incompatible pointer type passed as the remainder
> > argument to div_u64_rem(). No functional impact.
> > 
> > Patch 3 makes opt4001_write_raw() reject integration time writes with
> > a non-zero integer (seconds) part, which were previously accepted
> > silently based on the microseconds part alone.
> > 
> > Patch 4 fixes reversed GENMASK() arguments in the (currently unused)
> > fault count mask definition and adds the _MASK suffix for consistency.  
> 
> LGTM now, FWIW,
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
> 

Nice. Applied to the fixes-togreg branch of iio.git. I marked them all
for stable

Thanks

Jonathan


      reply	other threads:[~2026-07-20  2:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-14 11:31 [PATCH v3 0/4] iio: light: opt4001: Fixes from code review Nikhil Gautam
2026-07-14 11:31 ` [PATCH v3 1/4] iio: light: opt4001: Fix power down clearing bits of the wrong register Nikhil Gautam
2026-07-14 11:31 ` [PATCH v3 2/4] iio: light: opt4001: Fix incompatible pointer type passed to div_u64_rem() Nikhil Gautam
2026-07-14 11:31 ` [PATCH v3 3/4] iio: light: opt4001: Reject integration times with a non-zero seconds part Nikhil Gautam
2026-07-14 11:31 ` [PATCH v3 4/4] iio: light: opt4001: Fix reversed GENMASK() arguments in fault count mask Nikhil Gautam
2026-07-14 12:44 ` [PATCH v3 0/4] iio: light: opt4001: Fixes from code review Andy Shevchenko
2026-07-20  2:24   ` 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=20260720032458.0862edf5@jic23-huawei \
    --to=jonathan.cameron@oss.qualcomm.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nikhilgtr@gmail.com \
    --cc=nuno.sa@analog.com \
    --cc=stefan.windfeldt-prytz@axis.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