diff options
| author | Armin Wolf <W_Armin@gmx.de> | 2026-10-07 01:45:34 +0200 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-10-19 13:54:04 -0700 |
| commit | 0b6eda22f9ab67ddb2a872b0c3fc578ad9f4e27e (patch) | |
| tree | 5b98f98dd856a9adb09a2cdf08e07325f6d8f612 /tools/lib/python | |
| parent | 817ac527100c8e20684211eb919ffd6d875adc7a (diff) | |
| download | linux-0b6eda22f9ab67ddb2a872b0c3fc578ad9f4e27e.tar.gz linux-0b6eda22f9ab67ddb2a872b0c3fc578ad9f4e27e.zip | |
hwmon: (acpi_power_meter) Fix 18.45 TW bug
The ACPI specification says:
"If an error occurs while obtaining the meter reading or if the value
is not available then an Integer with all bits set is returned"
This integer can also be 64-bit wide on ACPI 2.0 and later systems,
so we have to check for that too.
Compile-tested only.
Reported-by: Grant Slater <github@firefishy.com>
Closes: https://github.com/lm-sensors/lm-sensors/issues/460
Fixes: 1fefca6c57fb ("hwmon: (acpi_power_meter) Fix 4.29 MW bug")
Cc: stable@vger.kernel.org
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://patch.msgid.link/20261006234618.10943-1-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
