hwmon: intel-m10-bmc-hwmon: fix multiplier for N6000 board power sensor
Subsystems (2)
PATCH 1/1 hwmon: intel-m10-bmc-hwmon: fix multiplier for N6000 board power sensor
The Intel N6000 BMC outputs the board power value in milliwatt, whereas the hwmon sysfs interface must provide power values in microwatt.
Fixes e1983220ae14 ("hwmon: intel-m10-bmc-hwmon: Add N6000 sensors")
Signed-off-by Peter Colberg <[email protected]>
Reviewed-by Matthew Gerlach <[email protected]>
---
Incorrect sensors output on Intel N6001 with v6.9:
Board Power: 36.03 mW
Correct sensors output on Intel N6001 with v6.9 and this patch:
Board Power: 35.79 W
--- drivers/hwmon/intel-m10-bmc-hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/intel-m10-bmc-hwmon.c +1 -1
@@ -429,7 +429,7 @@ static const struct m10bmc_sdata n6000bmc_curr_tbl[] = { };static const struct m10bmc_sdata n6000bmc_power_tbl[] = { - {0x724 ,0x0 ,0x0 ,0x0 ,0x0 ,1 ,"Board Power" }, + {0x724 ,0x0 ,0x0 ,0x0 ,0x0 ,1000 ,"Board Power" }, };static const struct hwmon_channel_info *const n6000bmc_hinfo[] = {
Signature · 1 line
2.45.1
Quoted 6 lines · Peter Colberg
The Intel N6000 BMC outputs the board power value in milliwatt, whereas the hwmon sysfs interface must provide power values in microwatt.
Fixes e1983220ae14 ("hwmon: intel-m10-bmc-hwmon: Add N6000 sensors")Signed-off-by Peter Colberg <[email protected]>Reviewed-by Matthew Gerlach <[email protected]>
Applied.
Thanks,
Guenter