[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <da9ba2fe-f182-43b7-a28d-b34021a2d3be@roeck-us.net>
Date: Fri, 7 Mar 2025 06:58:30 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: maudspierings@...ontroll.com
Cc: Jean Delvare <jdelvare@...e.com>, linux-hwmon@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] hwmon: (ntc_thermistor) return error instead of
clipping on OOB
On Fri, Mar 07, 2025 at 09:10:43AM +0100, Maud Spierings via B4 Relay wrote:
> From: Maud Spierings <maudspierings@...ontroll.com>
>
> When the ntc is reading Out Of Bounds instead of clipping to the nearest
> limit (min/max) return -ENODATA. This prevents malfunctioning sensors
> from sending a device into a shutdown loop due to a critical trip.
>
> This implementation will only work for ntc type thermistors if a ptc
> type is to be implemented the min/max ohm calculation must be adjusted
> to take that into account.
>
> Signed-off-by: Maud Spierings <maudspierings@...ontroll.com>
Applied.
Thanks,
Guenter
Powered by blists - more mailing lists