[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251210214413.pyzke7etf7xfjf5t@antoni-VivoBook-ASUSLaptop-X512FAY-K512FA>
Date: Wed, 10 Dec 2025 22:44:13 +0100
From: Antoni Pokusinski <apokusinski01@...il.com>
To: Guenter Roeck <linux@...ck-us.net>
Cc: linux-hwmon@...r.kernel.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] hwmon: (sht3x) add support for SHT85
Hello Guenter,
Thanks for the quick review
On Tue, Dec 09, 2025 at 07:09:55PM -0800, Guenter Roeck wrote:
> On 12/9/25 13:19, Guenter Roeck wrote:
> > On 12/9/25 09:58, Antoni Pokusinski wrote:
> > > SHT85 is a temperature and humidity sensor with an interface very
> > > similar to SHT3x. However, it does not feature alerts (and therefore
> > > limits).
> > >
> >
> > The datasheet does suggest that the chip supports both temperature and
> > humidity tracking alert status, which only makes sense if the chip
> > supports alert limits. It does not support an alert _pin_, but that
> > doesn't mean that it does not support limits. I'll want to see definite
> > confirmation that the chip does not support the limit commands.
> >
>
> Looking closer into the SHT85 datasheet, the sensor chip is actually a SHT35.
> Given that, disabling limit attributes and alarms is neither necessary
> nor acceptable. It isn't even necessary to add "sht85" to the device ID
> table; sht3x works just fine. I don't mind if it is added, but it does
> not need a new chip ID (at least until/unless interrupt support is added
> to the driver).
>
> Thanks,
> Guenter
>
I've just tested the SHT85 sensor with the non-modified sht3x driver and
the limits and alerts work fine indeed. I was a bit confused by the SHT85
datasheet which does not explicitly mention the limit commands, that's
why I excluded them in the patch, sorry for the confusion.
I guess I could simply add {"sht85", sht3x} entry to the i2c_device_id[],
this would also indicate clearly that sht85 is supported by this driver.
Kind regards,
Antoni
Powered by blists - more mailing lists