diff options
| author | Sanman Pradhan <psanman@juniper.net> | 2026-09-15 16:48:35 +0000 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-09-16 07:56:04 -0700 |
| commit | 1d12fb94ac0975566545871dda100df34df5f845 (patch) | |
| tree | 1433b5683a81190a373e8ecb6a9654f302fd89ec /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | e6cb0b4d4ecb8e71fd2200d907ab2e9663356f69 (diff) | |
| download | linux-next-1d12fb94ac0975566545871dda100df34df5f845.tar.gz linux-next-1d12fb94ac0975566545871dda100df34df5f845.zip | |
hwmon: (pmbus/tps53679) Fix TPS53676 phase page decoding
tps53676_identify() reads the USER_DATA_03 phase configuration to count
the phases assigned to each channel and derive the number of PMBus pages.
In each 16-bit phase descriptor the channel (PAGE) is encoded in bit 4 and
the firing order in bits 3:0, but the code tested bit 3 (0x08), which is
part of the firing-order field.
TPS53676 supports up to seven phases, so firing-order bit 3 is never set.
As a result the existing test classifies every enabled phase as channel A.
On a dual-channel configuration the phases assigned to channel B are
therefore miscounted as channel A and page 1 is not exposed.
Test the PAGE field (bit 4) instead.
Fixes: cb3d37b59012 ("hwmon: (pmbus/tps53679) Add support for TI TPS53676")
Cc: stable@vger.kernel.org
Signed-off-by: Sanman Pradhan <psanman@juniper.net>
Link: https://patch.msgid.link/20260915164823.160977-2-sanman.pradhan@hpe.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
