From: Angel Iglesias <ang.iglesiasg@gmail.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: linux-iio <linux-iio@vger.kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Nikita Yushchenko <nikita.yoush@cogentembedded.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
Paul Cercueil <paul@crapouillou.net>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5 3/5] iio: pressure: bmp280: Add support for BMP380 sensor family
Date: Sun, 14 Aug 2022 16:37:58 +0200 [thread overview]
Message-ID: <53b0132936a98943fb4284c4f72e3f4e6faa402d.camel@gmail.com> (raw)
In-Reply-To: <20220814151512.097c7779@jic23-huawei>
On Sun, 2022-08-14 at 15:15 +0100, Jonathan Cameron wrote:
> On Sun, 7 Aug 2022 13:55:52 +0200
> Angel Iglesias <ang.iglesiasg@gmail.com> wrote:
>
> > Adds compatibility with the new generation of this sensor, the BMP380
> >
> > Includes basic sensor initialization to do pressure and temp
> > measurements and allows tuning oversampling settings for each channel.
> >
> > The compensation algorithms are adapted from the device datasheet and
> > the repository https://github.com/BoschSensortec/BMP3-Sensor-API
> >
> > Signed-off-by: Angel Iglesias <ang.iglesiasg@gmail.com>
>
> One additional comment from me inline.
>
> Thanks,
>
> Jonathan
>
>
> > }
> > @@ -1124,6 +1471,13 @@ int bmp280_common_probe(struct device *dev,
> > return -EINVAL;
> > }
> >
> > + /* BMP3xx requires soft-reset as part of initialization */
> > + if (chip_id == BMP380_CHIP_ID) {
>
> I'd prefer this to be based on a flag in chip_info so that we can
> trivially add it to future devices by just setting that flag for the
> chip_info added for the new device.
How a new init or preinit callback? For now only BMP380 chip would use it, but I
would like to get my hands on a BMP390 and the new BMP580 and extend the driver
to support for them.
> > + ret = bmp380_cmd(data, BMP380_CMD_SOFT_RESET);
> > + if (ret < 0)
> > + return ret;
> > + }
> > +
> > ret = data->chip_info->chip_config(data);
> > if (ret < 0)
> > return ret;
>
Kind regards,
Angel
next prev parent reply other threads:[~2022-08-14 14:38 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-07 11:52 [PATCH v5 0/5] Add support for pressure sensor Bosch BMP380 Angel Iglesias
2022-08-07 11:54 ` [PATCH v5 1/5] iio: pressure: bmp280: simplify driver initialization logic Angel Iglesias
2022-08-08 8:18 ` Andy Shevchenko
2022-08-14 13:43 ` Jonathan Cameron
2022-08-14 14:26 ` Angel Iglesias
2022-08-07 11:55 ` [PATCH v5 2/5] iio: pressure: bmp280: Fix alignment for DMA safety Angel Iglesias
2022-08-08 8:53 ` Andy Shevchenko
2022-08-12 9:59 ` Angel Iglesias
2022-08-14 13:52 ` Jonathan Cameron
2022-08-14 14:03 ` Jonathan Cameron
2022-08-07 11:55 ` [PATCH v5 3/5] iio: pressure: bmp280: Add support for BMP380 sensor family Angel Iglesias
2022-08-08 9:08 ` Andy Shevchenko
2022-08-12 10:47 ` Angel Iglesias
2022-08-14 14:11 ` Jonathan Cameron
2022-08-14 14:15 ` Jonathan Cameron
2022-08-14 14:37 ` Angel Iglesias [this message]
2022-08-14 16:56 ` Jonathan Cameron
2022-08-07 11:56 ` [PATCH v5 4/5] dt-bindings: iio: pressure: bmp085: Add BMP380 compatible string Angel Iglesias
2022-08-07 11:57 ` [PATCH v5 5/5] iio: pressure: bmp280: Add more tunable config parameters for BMP380 Angel Iglesias
2022-08-08 9:13 ` Andy Shevchenko
2022-09-12 0:53 ` Angel Iglesias
2022-09-15 13:33 ` Jonathan Cameron
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=53b0132936a98943fb4284c4f72e3f4e6faa402d.camel@gmail.com \
--to=ang.iglesiasg@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nikita.yoush@cogentembedded.com \
--cc=paul@crapouillou.net \
--cc=rafael.j.wysocki@intel.com \
--cc=ulf.hansson@linaro.org \
/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;
as well as URLs for NNTP newsgroup(s).