summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorCarl Lee <carl.lee@amd.com>2026-09-07 15:58:32 +0800
committerGuenter Roeck <linux@roeck-us.net>2026-10-18 09:35:06 -0700
commitbc8c5bfc10896374182c1f20201446fc1abecdda (patch)
tree47abb70f0e8f4f9db95897c3aacee6d801fcc4d3 /tools/perf/scripts/python
parent241956880457326df28bd8a2a4f14fa8aba4f0ff (diff)
downloadlinux-bc8c5bfc10896374182c1f20201446fc1abecdda.tar.gz
linux-bc8c5bfc10896374182c1f20201446fc1abecdda.zip
hwmon: (pmbus/ltc4286) Add writable shunt_resistor sysfs attribute
The LTC4286/LTC4287 driver uses rsense to scale current and power telemetry. rsense is board-specific rather than a fixed device characteristic, and may differ across qualified BOM variants using the same software image. If rsense does not match the installed board configuration, current and power readings are mis-scaled. Add a writable shunt_resistor sysfs attribute so userspace can update the board calibration value after platform identification. Initialize rsense from shunt-resistor-micro-ohms as before (or the existing default when absent), and validate runtime updates before recalculating the current/power scaling coefficients. Signed-off-by: Carl Lee <carl.lee@amd.com> Link: https://patch.msgid.link/20260907-hwmon-pmbus-ltc4286-add-runtime-shunt-resistor-control-v2-1-5f47f7e5a1bb@amd.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions