From: Jonathan Cameron <jic23@kernel.org>
To: Abhash Jha <abhashkumarjha123@gmail.com>
Cc: linux-iio@vger.kernel.org, lars@metafoo.de, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 0/3] Interrupt and Continuous mode support for VL6180
Date: Sat, 5 Oct 2024 18:01:51 +0100 [thread overview]
Message-ID: <20241005180151.2f70cbef@jic23-huawei> (raw)
In-Reply-To: <20241005155225.9239-1-abhashkumarjha123@gmail.com>
On Sat, 5 Oct 2024 21:22:22 +0530
Abhash Jha <abhashkumarjha123@gmail.com> wrote:
> Hello,
>
> The first patch adds support for configuring the Sampling frequency
> (inter-measurement period) of the sensor. The values must be provided
> in miliseconds. The default value for the inter-measurement period for
> ALS is 10ms and for Range is 50ms.
>
> The second patch adds support for interrupt based single shot reading.
> We registered an irq_handler that fires everytime the data is ready.
> And then we read the appropriate value in the `vl6180_measure` routine.
>
> The third patch adds support for continuous mode in the sensor by using
> buffers. We enable the sensor's continuous mode in the buffer_postenable
> function depending on the `active_scan_mask`.
> The continuous mode can be disabled by disabling the buffer.
> Added a trigger to the device for the continuous mode. Also validating that
> the device uses the internal trigger provided by us.
>
> Changes in v2:
> - Fixed `label followed by a declaration is a C23 extension [-Wc23-extensions]`
> by moving the guard(mutex)(&data->lock) above the switch statement.
>
> - The above error was pointed out during testing by kernel-test-robot
>
> Thanks,
> Abhash Jha
Hi Abhash,
I left comments on v1. Even for a compile issue like this one, maybe just
a quick reply to the earlier posting saying what you will change is more
appropriate than sending a new version just one day after the first.
Not a bit thing, so just check those reviews on v1.
Thanks,
Jonathan
>
>
> Abhash Jha (3):
> iio: light: vl6180: Add configurable inter-measurement period support
> iio: light: vl6180: Added Interrupt support for single shot access
> iio: light: vl6180: Add support for Continuous Mode
>
> drivers/iio/light/vl6180.c | 266 ++++++++++++++++++++++++++++++++++---
> 1 file changed, 249 insertions(+), 17 deletions(-)
>
prev parent reply other threads:[~2024-10-05 17:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-05 15:52 [PATCH v2 0/3] Interrupt and Continuous mode support for VL6180 Abhash Jha
2024-10-05 15:52 ` [PATCH v2 1/3] iio: light: vl6180: Add configurable inter-measurement period support Abhash Jha
2024-10-05 15:52 ` [PATCH v2 2/3] iio: light: vl6180: Added Interrupt support for single shot access Abhash Jha
2024-10-05 15:52 ` [PATCH v2 3/3] iio: light: vl6180: Add support for Continuous Mode Abhash Jha
2024-10-05 17:01 ` 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=20241005180151.2f70cbef@jic23-huawei \
--to=jic23@kernel.org \
--cc=abhashkumarjha123@gmail.com \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.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