* [PATCH 0/1] iio: atlas-ezo: Fix humidity channel read support
@ 2026-10-12 11:45 Nikhil Gautam
2026-10-12 11:45 ` [PATCH 1/1] " Nikhil Gautam
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Nikhil Gautam @ 2026-10-12 11:45 UTC (permalink / raw)
To: linux-iio; +Cc: linux-kernel, jic23, dlechner, nuno.sa, andy, Nikhil Gautam
The atlas_ezo_read_raw() function currently rejects channels whose
type is not IIO_CONCENTRATION. As a result, the relative humidity channel
cannot access the raw or scale values, even though the driver defines support
for IIO_HUMIDITYRELATIVE.
Remove the early channel type check so that both concentration and
relative humidity channels can be handled by the existing mask-specific logic.
Nikhil Gautam (1):
iio: atlas-ezo: Fix humidity channel read support
drivers/iio/chemical/atlas-ezo-sensor.c | 3 ---
1 file changed, 3 deletions(-)
--
2.39.5
^ permalink raw reply [flat|nested] 11+ messages in thread* [PATCH 1/1] iio: atlas-ezo: Fix humidity channel read support 2026-10-12 11:45 [PATCH 0/1] iio: atlas-ezo: Fix humidity channel read support Nikhil Gautam @ 2026-10-12 11:45 ` Nikhil Gautam 2026-10-12 13:56 ` Joshua Crofts 2026-10-12 20:45 ` Andy Shevchenko 2026-10-12 13:57 ` [PATCH 0/1] " Joshua Crofts 2026-10-12 20:43 ` Andy Shevchenko 2 siblings, 2 replies; 11+ messages in thread From: Nikhil Gautam @ 2026-10-12 11:45 UTC (permalink / raw) To: linux-iio; +Cc: linux-kernel, jic23, dlechner, nuno.sa, andy, Nikhil Gautam The atlas_ezo_read_raw() function rejects channels that are not of type IIO_CONCENTRATION, preventing the relative humidity channel from reading raw and scale values. Remove the early channel type check to allow both concentration and relative humidity channels to reach the mask-specific handling. Signed-off-by: Nikhil Gautam <nikhilgtr@gmail.com> --- drivers/iio/chemical/atlas-ezo-sensor.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/iio/chemical/atlas-ezo-sensor.c b/drivers/iio/chemical/atlas-ezo-sensor.c index de0b87edd188..ee939e74bdae 100644 --- a/drivers/iio/chemical/atlas-ezo-sensor.c +++ b/drivers/iio/chemical/atlas-ezo-sensor.c @@ -117,9 +117,6 @@ static int atlas_ezo_read_raw(struct iio_dev *indio_dev, struct atlas_ezo_data *data = iio_priv(indio_dev); struct i2c_client *client = data->client; - if (chan->type != IIO_CONCENTRATION) - return -EINVAL; - switch (mask) { case IIO_CHAN_INFO_RAW: { int ret; -- 2.39.5 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1] iio: atlas-ezo: Fix humidity channel read support 2026-10-12 11:45 ` [PATCH 1/1] " Nikhil Gautam @ 2026-10-12 13:56 ` Joshua Crofts 2026-10-12 20:45 ` Andy Shevchenko 1 sibling, 0 replies; 11+ messages in thread From: Joshua Crofts @ 2026-10-12 13:56 UTC (permalink / raw) To: Nikhil Gautam; +Cc: linux-iio, linux-kernel, jic23, dlechner, nuno.sa, andy On Mon, 12 Oct 2026 17:15:53 +0530 Nikhil Gautam <nikhilgtr@gmail.com> wrote: > The atlas_ezo_read_raw() function rejects channels that are not of > type IIO_CONCENTRATION, preventing the relative humidity channel > from reading raw and scale values. > > Remove the early channel type check to allow both concentration > and relative humidity channels to reach the mask-specific handling. > > Signed-off-by: Nikhil Gautam <nikhilgtr@gmail.com> > --- What a weird check... Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com> Additionally, Sashiko found a potential I2C read issue, please check it out. https://sashiko.dev/#/patchset/20261012114553.3327-1-nikhilgtr%40gmail.com -- Kind regards, Joshua Crofts ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1] iio: atlas-ezo: Fix humidity channel read support 2026-10-12 11:45 ` [PATCH 1/1] " Nikhil Gautam 2026-10-12 13:56 ` Joshua Crofts @ 2026-10-12 20:45 ` Andy Shevchenko 2026-10-13 16:45 ` Nikhil Gautam 1 sibling, 1 reply; 11+ messages in thread From: Andy Shevchenko @ 2026-10-12 20:45 UTC (permalink / raw) To: Nikhil Gautam; +Cc: linux-iio, linux-kernel, jic23, dlechner, nuno.sa, andy On Mon, Oct 12, 2026 at 05:15:53PM +0530, Nikhil Gautam wrote: > The atlas_ezo_read_raw() function rejects channels that are not of > type IIO_CONCENTRATION, preventing the relative humidity channel > from reading raw and scale values. > > Remove the early channel type check to allow both concentration > and relative humidity channels to reach the mask-specific handling. Have you checked the Git history on this change? Anything interesting there? -- With Best Regards, Andy Shevchenko ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1] iio: atlas-ezo: Fix humidity channel read support 2026-10-12 20:45 ` Andy Shevchenko @ 2026-10-13 16:45 ` Nikhil Gautam 2026-10-17 23:31 ` Jonathan Cameron 0 siblings, 1 reply; 11+ messages in thread From: Nikhil Gautam @ 2026-10-13 16:45 UTC (permalink / raw) To: Andy Shevchenko; +Cc: linux-iio, linux-kernel, jic23, dlechner, nuno.sa, andy Hi Joshua, Andy, Thanks for the review and feedback. I checked the Git history and found that the channel type check was already present in commit dc3ebfc ("iio: chemical: atlas-ezo-sensor: add humidity sensor support"). It was not removed when humidity sensor support was introduced, and I couldn't find any commit message explaining the original intent of the check. Regarding the potential I2C read issue reported by Sashiko, I'll investigate it and address it in a separate patch series. I'll also omit the cover letter for future single-patch submissions. Thanks, Nikhil On 13-10-2026 02:15 am, Andy Shevchenko wrote: > On Mon, Oct 12, 2026 at 05:15:53PM +0530, Nikhil Gautam wrote: >> The atlas_ezo_read_raw() function rejects channels that are not of >> type IIO_CONCENTRATION, preventing the relative humidity channel >> from reading raw and scale values. >> >> Remove the early channel type check to allow both concentration >> and relative humidity channels to reach the mask-specific handling. > Have you checked the Git history on this change? Anything interesting there? > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1] iio: atlas-ezo: Fix humidity channel read support 2026-10-13 16:45 ` Nikhil Gautam @ 2026-10-17 23:31 ` Jonathan Cameron 2026-10-17 23:34 ` Jonathan Cameron 2026-10-18 2:28 ` Matt Ranostay 0 siblings, 2 replies; 11+ messages in thread From: Jonathan Cameron @ 2026-10-17 23:31 UTC (permalink / raw) To: Nikhil Gautam Cc: Andy Shevchenko, linux-iio, linux-kernel, dlechner, nuno.sa, andy, Matt Ranostay On Tue, 13 Oct 2026 22:15:23 +0530 Nikhil Gautam <nikhilgtr@gmail.com> wrote: > Hi Joshua, Andy, > > Thanks for the review and feedback. > > I checked the Git history and found that the channel type check was > already present > in commit dc3ebfc ("iio: chemical: atlas-ezo-sensor: add humidity sensor > support"). > It was not removed when humidity sensor support was introduced, and > I couldn't find any commit message explaining the original intent of the > check. > > Regarding the potential I2C read issue reported by Sashiko, > I'll investigate it and address it in a separate patch series. > > I'll also omit the cover letter for future single-patch submissions. Matt normally gets back reasonably quickly so +CC but I'll assume this is just one of those last minute editing errors and apply the fix in the meantime. So applied to the fxies-togreg branch of iio.git and marked for stable. Thanks, Jonathan > > Thanks, > Nikhil > > On 13-10-2026 02:15 am, Andy Shevchenko wrote: > > On Mon, Oct 12, 2026 at 05:15:53PM +0530, Nikhil Gautam wrote: > >> The atlas_ezo_read_raw() function rejects channels that are not of > >> type IIO_CONCENTRATION, preventing the relative humidity channel > >> from reading raw and scale values. > >> > >> Remove the early channel type check to allow both concentration > >> and relative humidity channels to reach the mask-specific handling. > > Have you checked the Git history on this change? Anything interesting there? > > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1] iio: atlas-ezo: Fix humidity channel read support 2026-10-17 23:31 ` Jonathan Cameron @ 2026-10-17 23:34 ` Jonathan Cameron 2026-10-18 2:28 ` Matt Ranostay 1 sibling, 0 replies; 11+ messages in thread From: Jonathan Cameron @ 2026-10-17 23:34 UTC (permalink / raw) To: Nikhil Gautam Cc: Andy Shevchenko, linux-iio, linux-kernel, dlechner, nuno.sa, andy, Matt Ranostay On Sun, 18 Oct 2026 00:31:29 +0100 Jonathan Cameron <jic23@kernel.org> wrote: > On Tue, 13 Oct 2026 22:15:23 +0530 > Nikhil Gautam <nikhilgtr@gmail.com> wrote: > > > Hi Joshua, Andy, > > > > Thanks for the review and feedback. > > > > I checked the Git history and found that the channel type check was > > already present > > in commit dc3ebfc ("iio: chemical: atlas-ezo-sensor: add humidity sensor > > support"). > > It was not removed when humidity sensor support was introduced, and > > I couldn't find any commit message explaining the original intent of the > > check. > > > > Regarding the potential I2C read issue reported by Sashiko, > > I'll investigate it and address it in a separate patch series. > > > > I'll also omit the cover letter for future single-patch submissions. > > Matt normally gets back reasonably quickly so +CC but I'll > assume this is just one of those last minute editing errors and > apply the fix in the meantime. > > So applied to the fxies-togreg branch of iio.git and marked for stable. fixes-togreg that is. I also added the missing fixes tag to point to the introduction of the humidity sensor. J > > Thanks, > > Jonathan > > > > > Thanks, > > Nikhil > > > > On 13-10-2026 02:15 am, Andy Shevchenko wrote: > > > On Mon, Oct 12, 2026 at 05:15:53PM +0530, Nikhil Gautam wrote: > > >> The atlas_ezo_read_raw() function rejects channels that are not of > > >> type IIO_CONCENTRATION, preventing the relative humidity channel > > >> from reading raw and scale values. > > >> > > >> Remove the early channel type check to allow both concentration > > >> and relative humidity channels to reach the mask-specific handling. > > > Have you checked the Git history on this change? Anything interesting there? > > > > > > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1] iio: atlas-ezo: Fix humidity channel read support 2026-10-17 23:31 ` Jonathan Cameron 2026-10-17 23:34 ` Jonathan Cameron @ 2026-10-18 2:28 ` Matt Ranostay 2026-10-18 18:02 ` Jonathan Cameron 1 sibling, 1 reply; 11+ messages in thread From: Matt Ranostay @ 2026-10-18 2:28 UTC (permalink / raw) To: Jonathan Cameron Cc: Nikhil Gautam, Andy Shevchenko, linux-iio, linux-kernel, dlechner, nuno.sa, andy On Sunday, October 18th, 2026 at 07:31, Jonathan Cameron <jic23@kernel.org> wrote: > On Tue, 13 Oct 2026 22:15:23 +0530 > Nikhil Gautam <nikhilgtr@gmail.com> wrote: > > > Hi Joshua, Andy, > > > > Thanks for the review and feedback. > > > > I checked the Git history and found that the channel type check was > > already present > > in commit dc3ebfc ("iio: chemical: atlas-ezo-sensor: add humidity sensor > > support"). > > It was not removed when humidity sensor support was introduced, and > > I couldn't find any commit message explaining the original intent of the > > check. > > > > Regarding the potential I2C read issue reported by Sashiko, > > I'll investigate it and address it in a separate patch series. > > > > I'll also omit the cover letter for future single-patch submissions. > > Matt normally gets back reasonably quickly so +CC but I'll > assume this is just one of those last minute editing errors and > apply the fix in the meantime. Yeah this was probably an oversight on my part. Since the humidity sensor support came later, and don't think I actually ever had this EVO sensor. So the patch LGTM. Reviewed-by: Matt Ranostay <matt@ranostay.sg> > > So applied to the fxies-togreg branch of iio.git and marked for stable. > > Thanks, > > Jonathan > > > > > Thanks, > > Nikhil > > > > On 13-10-2026 02:15 am, Andy Shevchenko wrote: > > > On Mon, Oct 12, 2026 at 05:15:53PM +0530, Nikhil Gautam wrote: > > >> The atlas_ezo_read_raw() function rejects channels that are not of > > >> type IIO_CONCENTRATION, preventing the relative humidity channel > > >> from reading raw and scale values. > > >> > > >> Remove the early channel type check to allow both concentration > > >> and relative humidity channels to reach the mask-specific handling. > > > Have you checked the Git history on this change? Anything interesting there? > > > > > > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1] iio: atlas-ezo: Fix humidity channel read support 2026-10-18 2:28 ` Matt Ranostay @ 2026-10-18 18:02 ` Jonathan Cameron 0 siblings, 0 replies; 11+ messages in thread From: Jonathan Cameron @ 2026-10-18 18:02 UTC (permalink / raw) To: Matt Ranostay Cc: Nikhil Gautam, Andy Shevchenko, linux-iio, linux-kernel, dlechner, nuno.sa, andy On Sun, 18 Oct 2026 02:28:01 +0000 Matt Ranostay <matt@ranostay.sg> wrote: > On Sunday, October 18th, 2026 at 07:31, Jonathan Cameron <jic23@kernel.org> wrote: > > > On Tue, 13 Oct 2026 22:15:23 +0530 > > Nikhil Gautam <nikhilgtr@gmail.com> wrote: > > > > > Hi Joshua, Andy, > > > > > > Thanks for the review and feedback. > > > > > > I checked the Git history and found that the channel type check was > > > already present > > > in commit dc3ebfc ("iio: chemical: atlas-ezo-sensor: add humidity sensor > > > support"). > > > It was not removed when humidity sensor support was introduced, and > > > I couldn't find any commit message explaining the original intent of the > > > check. > > > > > > Regarding the potential I2C read issue reported by Sashiko, > > > I'll investigate it and address it in a separate patch series. > > > > > > I'll also omit the cover letter for future single-patch submissions. > > > > Matt normally gets back reasonably quickly so +CC but I'll > > assume this is just one of those last minute editing errors and > > apply the fix in the meantime. > > Yeah this was probably an oversight on my part. Since the humidity sensor support came later, and don't think I actually ever had this EVO sensor. > So the patch LGTM. > > Reviewed-by: Matt Ranostay <matt@ranostay.sg> Thanks and tag added. J > > > > > So applied to the fxies-togreg branch of iio.git and marked for stable. > > > > Thanks, > > > > Jonathan > > > > > > > > Thanks, > > > Nikhil > > > > > > On 13-10-2026 02:15 am, Andy Shevchenko wrote: > > > > On Mon, Oct 12, 2026 at 05:15:53PM +0530, Nikhil Gautam wrote: > > > >> The atlas_ezo_read_raw() function rejects channels that are not of > > > >> type IIO_CONCENTRATION, preventing the relative humidity channel > > > >> from reading raw and scale values. > > > >> > > > >> Remove the early channel type check to allow both concentration > > > >> and relative humidity channels to reach the mask-specific handling. > > > > Have you checked the Git history on this change? Anything interesting there? > > > > > > > > > > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/1] iio: atlas-ezo: Fix humidity channel read support 2026-10-12 11:45 [PATCH 0/1] iio: atlas-ezo: Fix humidity channel read support Nikhil Gautam 2026-10-12 11:45 ` [PATCH 1/1] " Nikhil Gautam @ 2026-10-12 13:57 ` Joshua Crofts 2026-10-12 20:43 ` Andy Shevchenko 2 siblings, 0 replies; 11+ messages in thread From: Joshua Crofts @ 2026-10-12 13:57 UTC (permalink / raw) To: Nikhil Gautam; +Cc: linux-iio, linux-kernel, jic23, dlechner, nuno.sa, andy On Mon, 12 Oct 2026 17:15:52 +0530 Nikhil Gautam <nikhilgtr@gmail.com> wrote: > The atlas_ezo_read_raw() function currently rejects channels whose > type is not IIO_CONCENTRATION. As a result, the relative humidity channel > cannot access the raw or scale values, even though the driver defines support > for IIO_HUMIDITYRELATIVE. > > Remove the early channel type check so that both concentration and > relative humidity channels can be handled by the existing mask-specific logic. > > Nikhil Gautam (1): > iio: atlas-ezo: Fix humidity channel read support > > drivers/iio/chemical/atlas-ezo-sensor.c | 3 --- > 1 file changed, 3 deletions(-) > No need to add a cover letter if you're just sending one patch. Thanks. -- Kind regards, Joshua Crofts ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/1] iio: atlas-ezo: Fix humidity channel read support 2026-10-12 11:45 [PATCH 0/1] iio: atlas-ezo: Fix humidity channel read support Nikhil Gautam 2026-10-12 11:45 ` [PATCH 1/1] " Nikhil Gautam 2026-10-12 13:57 ` [PATCH 0/1] " Joshua Crofts @ 2026-10-12 20:43 ` Andy Shevchenko 2 siblings, 0 replies; 11+ messages in thread From: Andy Shevchenko @ 2026-10-12 20:43 UTC (permalink / raw) To: Nikhil Gautam; +Cc: linux-iio, linux-kernel, jic23, dlechner, nuno.sa, andy On Mon, Oct 12, 2026 at 05:15:52PM +0530, Nikhil Gautam wrote: > The atlas_ezo_read_raw() function currently rejects channels whose > type is not IIO_CONCENTRATION. As a result, the relative humidity channel > cannot access the raw or scale values, even though the driver defines support > for IIO_HUMIDITYRELATIVE. > > Remove the early channel type check so that both concentration and > relative humidity channels can be handled by the existing mask-specific logic. Cover letter is not required for a single patch. Anything you want to say can be added in the comment block (after '---' cutter line). -- With Best Regards, Andy Shevchenko ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2026-10-18 18:03 UTC | newest] Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2026-10-12 11:45 [PATCH 0/1] iio: atlas-ezo: Fix humidity channel read support Nikhil Gautam 2026-10-12 11:45 ` [PATCH 1/1] " Nikhil Gautam 2026-10-12 13:56 ` Joshua Crofts 2026-10-12 20:45 ` Andy Shevchenko 2026-10-13 16:45 ` Nikhil Gautam 2026-10-17 23:31 ` Jonathan Cameron 2026-10-17 23:34 ` Jonathan Cameron 2026-10-18 2:28 ` Matt Ranostay 2026-10-18 18:02 ` Jonathan Cameron 2026-10-12 13:57 ` [PATCH 0/1] " Joshua Crofts 2026-10-12 20:43 ` Andy Shevchenko
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®