From: Jonathan Cameron <jic23@kernel.org>
To: Samuel Moelius <sam.moelius@trailofbits.com>
Cc: "Andy Shevchenko" <andriy.shevchenko@intel.com>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Marcelo Schmitt" <marcelo.schmitt@analog.com>,
"Jonathan Santos" <Jonathan.Santos@analog.com>,
"Jorge Marques" <jorge.marques@analog.com>,
"Antoniu Miclaus" <antoniu.miclaus@analog.com>,
"Matti Vaittinen" <mazziesaccount@gmail.com>,
"Jishnu Prakash" <jishnu.prakash@oss.qualcomm.com>,
"Duje Mihanović" <duje@dujemihanovic.xyz>,
"Stefan Popa" <stefan.popa@analog.com>,
"Julien Stephan" <jstephan@baylibre.com>,
"open list:IIO SUBSYSTEM AND DRIVERS" <linux-iio@vger.kernel.org>,
"Samuel Moelius" <samuel.moelius@trailofbits.com>
Subject: Re: [PATCH v2] iio: adc: ad7380: select REGMAP
Date: Wed, 3 Jun 2026 13:49:55 +0100 [thread overview]
Message-ID: <20260603134955.2f1d5ede@jic23-huawei> (raw)
In-Reply-To: <CAE+C+DYE-8nNouH_Ec6vB0Z1tgyxznbbMvoQJ9S0iKqb1oj2Hg@mail.gmail.com>
On Wed, 3 Jun 2026 07:53:09 -0400
Samuel Moelius <sam.moelius@trailofbits.com> wrote:
> On Wed, Jun 3, 2026 at 7:01 AM Jonathan Cameron <jic23@kernel.org> wrote:
> >
> > On Wed, 3 Jun 2026 04:14:54 +0300
> > Andy Shevchenko <andriy.shevchenko@intel.com> wrote:
> >
> > > On Tue, Jun 02, 2026 at 04:45:39PM +0000, Sam Moelius wrote:
> > >
> > > > The AD7380 driver uses generic regmap types and APIs. However, its
> > > > Kconfig entry does not select REGMAP.
> > > >
> > > > As a result, AD7380 can be enabled from an allnoconfig-derived config
> > > > with SPI_MASTER=y while REGMAP remains unset, causing ad7380.o to fail
> > > > to build.
> > >
> > > Okay,
> > > Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
> > >
> > I replied late to v1. Unless I'm missing something makes more sense
> > to select REGMAP_SPI
>
> REGMAP_SPI also builds drivers/base/regmap/regmap-spi.o, which AD7380
> does not use.
>
> So, to merely fix the ad7380.o build failure, REGMAP seems to be the
> right choice.
Good point. I failed to notice it uses a custom regmap.
Applied to the fixes-togreg branch of iio.git and marked for stable.
Given timing I may well drag that into the queue for the merge window
rather than ending a separate pull request for fixes.
prev parent reply other threads:[~2026-06-03 12:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-02 16:45 [PATCH v2] iio: adc: ad7380: select REGMAP Sam Moelius
2026-06-03 1:14 ` Andy Shevchenko
2026-06-03 11:01 ` Jonathan Cameron
2026-06-03 11:53 ` Samuel Moelius
2026-06-03 12:49 ` 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=20260603134955.2f1d5ede@jic23-huawei \
--to=jic23@kernel.org \
--cc=Jonathan.Santos@analog.com \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=antoniu.miclaus@analog.com \
--cc=dlechner@baylibre.com \
--cc=duje@dujemihanovic.xyz \
--cc=jishnu.prakash@oss.qualcomm.com \
--cc=jorge.marques@analog.com \
--cc=jstephan@baylibre.com \
--cc=linux-iio@vger.kernel.org \
--cc=marcelo.schmitt@analog.com \
--cc=mazziesaccount@gmail.com \
--cc=nuno.sa@analog.com \
--cc=sam.moelius@trailofbits.com \
--cc=samuel.moelius@trailofbits.com \
--cc=stefan.popa@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