]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (pmbus/lm25066) Fix PMBus coefficients for LM5064/5066/5066i
authorPotin Lai <potin.lai.pt@gmail.com>
Thu, 11 Jun 2026 05:46:18 +0000 (13:46 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 11 Jun 2026 11:30:34 +0000 (04:30 -0700)
commit83dda7ed185501ba1f8165aeca83ff4a8ef7c263
tree0a343134cffdbab956653229ca6b82c152636fbc
parent69cbfd708884fa71a1c2353c07ecd8e646bd43a0
hwmon: (pmbus/lm25066) Fix PMBus coefficients for LM5064/5066/5066i

Swap the high setting and low setting coefficients in the lm25066_coeff
table for LM5064, LM5066, and LM5066i. The coefficients were previously
mapped incorrectly, resulting in inverted current and power scaling.

Additionally, dynamically assign the exponent (R) registers inside the
probe's LM25066_DEV_SETUP_CL check. This ensures that the proper
exponent is applied (e.g., for LM25056, high setting power exponent
is -4, but low setting power exponent is -3).

Signed-off-by: Potin Lai <potin.lai.pt@gmail.com>
Link: https://lore.kernel.org/r/20260611-lm25066-driver-fix-v3-1-9d7d4b4e253d@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/lm25066.c