From: Philippe De Muyter <phdm@macq.eu>
To: Lorenzo Bianconi <lorenzo@kernel.org>
Cc: Jonathan Cameron <jic23@kernel.org>,
linux-iio@vger.kernel.org, lorenzo.bianconi@redhat.com
Subject: Re: [PATCH] iio: imu: st_lsm6dsx: discard samples during filters settling time
Date: Mon, 20 Feb 2023 12:28:11 +0100 [thread overview]
Message-ID: <20230220112811.GA25621@frolo.macqel> (raw)
In-Reply-To: <Y/M5feqZB+4JP99M@lore-desk>
Hello Lorenzo and Jonathan,
On Mon, Feb 20, 2023 at 10:12:29AM +0100, Lorenzo Bianconi wrote:
> On Sat, Feb 18, 2023 at 01:56:22PM +0000, Jonathan Cameron wrote:
>
> > On Wed, 8 Feb 2023 15:42:31 +0100
> > Lorenzo Bianconi <lorenzo@kernel.org> wrote:
> >
> > > During digital filters settling time the driver is expected to drop
> > > samples since they can be corrupted. Introduce the capability to drop
> > > a given number of samples according to the configured ODR.
> > > Add the sample_to_discard data for LSM6DSM sensor.
> > >
> > > Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> >
> > Is this only necessary for the particular sensor you have provided
> > values for? Or is it more general?
> >
> > I think the code will currently just set the number of samples to discard
> > to 0 for other cases (as no value set for those sensor types).
> > That's fine if 0 is definitely the right value for those other sensors.
>
> I think all the sensors have this information in the datasheet/application
> note. However, even if we add sample_to_discard just for LSM6DSM for the moment,
> we do not introduce any regression for the other sensors with respect to the
> previous codebase since sample_to_discard will be just set to 0 (so we do not
> discard any sample). I can add sample_to_discard for LSM6DSO but at the
> moment I do not have other devices for testing.
> For LSM6DSO, do you prefer to add it in v2 or is it fine a follow-up patch?
How comes your patch really drops samples on my st,ism330dlc IMU ?
Best regards
Philippe
next prev parent reply other threads:[~2023-02-20 11:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-08 14:42 [PATCH] iio: imu: st_lsm6dsx: discard samples during filters settling time Lorenzo Bianconi
2023-02-08 16:23 ` Philippe De Muyter
2023-02-08 16:34 ` Lorenzo Bianconi
2023-02-08 17:15 ` Philippe De Muyter
2023-02-08 17:28 ` Lorenzo Bianconi
2023-02-12 10:21 ` Lorenzo Bianconi
2023-02-13 9:19 ` Philippe De Muyter
2023-02-13 10:16 ` [PATCH] iio: imu: st_lsm6dsx: no answer after some iio_generic_buffer test cycles Philippe De Muyter
2023-02-13 10:53 ` Lorenzo Bianconi
2023-02-14 9:42 ` Philippe De Muyter
2023-02-18 13:56 ` [PATCH] iio: imu: st_lsm6dsx: discard samples during filters settling time Jonathan Cameron
2023-02-20 9:12 ` Lorenzo Bianconi
2023-02-20 11:28 ` Philippe De Muyter [this message]
2023-02-20 11:31 ` Lorenzo Bianconi
2023-02-20 12:41 ` Jonathan Cameron
2023-02-20 13:07 ` Lorenzo Bianconi
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=20230220112811.GA25621@frolo.macqel \
--to=phdm@macq.eu \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=lorenzo.bianconi@redhat.com \
--cc=lorenzo@kernel.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 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.