diff options
| author | Thomas Richard (congatec GmbH) <thomas.richard@bootlin.com> | 2026-09-11 19:31:58 +0200 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-09-13 21:19:47 -0700 |
| commit | 7bae83ffb133bc373d098fa6828cef2ef4da49fe (patch) | |
| tree | 267f553f5d02a609a35b2645aafd488a39ecf8de /tools/perf/scripts/python/stackcollapse.py | |
| parent | 26d5ff79768548efb1e604bb6e8697c101e06269 (diff) | |
| download | linux-next-7bae83ffb133bc373d098fa6828cef2ef4da49fe.tar.gz linux-next-7bae83ffb133bc373d098fa6828cef2ef4da49fe.zip | |
hwmon: (cgbc-hwmon) Fix current sensors ID lookup
Current sensors on the Congatec Board Controller don't use consecutive IDs,
unlike other sensor types (voltage, temperature, fan). The driver assumed
consecutive IDs and performed a simple lookup, which caused an unknown
sensor warning. Define current sensor IDs explicitly.
Changes the warning on conga-SA7 (type and channel are correct now).
Before:
Board Controller returned an unknown sensor (type=2, channel=17), ignore it
After:
Board Controller returned an unknown sensor (bc_type=1, bc_id=11), ignore it
Cc: stable@kernel.org
Fixes: 08ebc9def79f ("hwmon: Add Congatec Board Controller monitoring driver")
Signed-off-by: Thomas Richard (congatec GmbH) <thomas.richard@bootlin.com>
Link: https://patch.msgid.link/20260911-cgbc-hwmon-fix-and-new-sensors-v2-1-0c6bf078d173@bootlin.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
