linux-next/Documentation
Armin Wolf ca8fd8c16a hwmon: (ftsteutates) Fix scaling of measurements
A user complained that the ftsteutates driver was displaying
bogus values since its introduction. This happens because the
sensor measurements need to be scaled in order to produce
meaningful results:
- the fan speed needs to be multiplied by 60 since its in RPS
- the temperature is in degrees celsius and needs an offset of 64
- the voltage is in 1/256 of 3.3V

The offical datasheet says the voltage needs to be divided by 256,
but this is likely an off-by-one-error, since even the BIOS
devides by 255 (otherwise 3.3V could not be measured).

The voltage channels additionally need a board-specific multiplier,
however this can be done by the driver since its board-specific.

The reason the missing scaling of measurements is the way Fujitsu
used this driver when it was still out-of-tree. Back then, all
scaling was done in userspace by libsensors, even the generic one.

Tested on a Fujitsu DS3401-B1.

Fixes: 08426eda58e0 ("hwmon: Add driver for FTS BMC chip "Teutates"")
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20221224041855.83981-2-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2023-01-03 13:26:45 -08:00
..
2022-12-23 12:00:24 -08:00
2022-12-19 08:34:39 -06:00
2022-12-14 12:20:00 -08:00
2022-12-23 11:15:48 -08:00
2022-12-19 08:54:17 -06:00
2022-11-15 10:07:40 +01:00
2022-12-21 10:18:17 -08:00
2022-10-09 22:30:23 -07:00
2022-12-13 19:29:45 -08:00
2022-12-12 13:55:31 -08:00
2022-12-19 12:33:32 -06:00
2022-09-28 09:02:45 +02:00
2022-12-21 18:57:24 -08:00
2022-12-14 09:15:43 -08:00
2022-10-03 16:39:37 -07:00