]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (pmbus) Implement multi-phase support
authorGuenter Roeck <linux@roeck-us.net>
Mon, 13 Jan 2020 23:30:14 +0000 (15:30 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 9 Mar 2020 03:35:47 +0000 (20:35 -0700)
commit2ad15ce859db1e0af0b7d72185bdb16452b244d7
tree3da8a97cf0425631b0231dfe24d3694ceb554179
parentc454739a76fdc2ab077eb65e64f8766917488dd0
hwmon: (pmbus) Implement multi-phase support

Some PMBus chips support multiple phases, and report telemetry such
as input current, output current, or temperature for each phase.
Add support for such chips to the PMBus core.

Start with a maximum of 8 phases per page, and assume that supported
sensors per phase are similar for all pages. Only support per-phase
telemetry attributes, no limits or alarms.

As part of this patch, set the initial page variable to 0xff to ensure
that the page is updated when the first page command is issued. Also
only issue page commands if the chip supports more than one page.

Cc: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/pmbus.rst
drivers/hwmon/pmbus/pmbus.h
drivers/hwmon/pmbus/pmbus_core.c