]> 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)
commit734e3b8aa1710af8f1b3bedb898547031f3e736c
tree3da8a97cf0425631b0231dfe24d3694ceb554179
parent52118d37f441a9e93920ac7dd2aa31b78680bcd9
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