From: Philippe De Muyter <phdm@macq.eu>
To: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Cc: Lorenzo Bianconi <lorenzo@kernel.org>,
jic23@kernel.org, linux-iio@vger.kernel.org
Subject: Re: [PATCH] iio: imu: st_lsm6dsx: discard samples during filters settling time
Date: Mon, 13 Feb 2023 10:19:57 +0100 [thread overview]
Message-ID: <20230213091957.GA4925@frolo.macqel> (raw)
In-Reply-To: <Y+i9rImVqH7iVets@lore-desk>
Hello Lorenzo,
On Sun, Feb 12, 2023 at 11:21:32AM +0100, Lorenzo Bianconi wrote:
> Date: Sun, 12 Feb 2023 11:21:32 +0100
> From: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
> To: Lorenzo Bianconi <lorenzo@kernel.org>
> Cc: jic23@kernel.org, phdm@macq.eu, linux-iio@vger.kernel.org
> Subject: Re: [PATCH] iio: imu: st_lsm6dsx: discard samples during filters
> settling time
>
> > 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>
> > ---
> > drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 11 ++++
> > .../iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c | 58 +++++++++++++++----
> > drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 18 ++++++
> > 3 files changed, 77 insertions(+), 10 deletions(-)
>
> I forgot to say I tested this patch on my LSM6DSM and it works fine for me.
>
> Regards,
> Lorenzo
>
It works fine for me too, with a ism330dlc.
Reported-by: Philippe De Muyter <phdm@macqel.be>
Tested-by: Philippe De Muyter <phdm@macqel.be>
However I have another bug, with our without the patch : frequently
my test, using a loop around iio-generic-buffer, blocks on the poll syscall.
No value comes anymore. This happens both with the gyro as with the accel
component.
More info follows.
Best regards
Philippe
next prev parent reply other threads:[~2023-02-13 9:20 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 [this message]
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
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=20230213091957.GA4925@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox