linux/drivers/hwmon/pmbus
Guenter Roeck d86f3c9bba hwmon: (pmbus) Improve initialization of 'currpage' and 'currphase'
The 'currpage' and 'currphase' variables in struct pmbus_data are used by
the PMBus core to determine if the phase or page value has changed. Both
are initialized with values which are never expected to be set in the code
to ensure that the first page/phase write operation is actually performed.

This is not well explained and occasionally causes confusion. Change the
type of both variables to s16 and initialize with -1 to ensure that the
initial value never matches a requested value, and clarify that this
value means "unknown/unset".

Cc: Alex Qiu <xqiu@google.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2020-05-22 06:28:38 -07:00
..
adm1275.c hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support 2020-03-08 20:35:47 -07:00
bel-pfe.c hwmon: (pmbus) add driver for BEL PFE1100 and PFE3000 2019-11-06 14:37:19 -08:00
ibm-cffps.c hwmon: (pmbus/ibm-cffps) Add another PSU CCIN to version detection 2020-03-15 06:38:59 -07:00
inspur-ipsps.c hwmon: pmbus: Add Inspur Power System power supply driver 2019-09-03 12:47:17 -07:00
ir35221.c hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support 2020-03-08 20:35:47 -07:00
ir38064.c hwmon: (pmbus/ir38064) Add driver for Infineon IR38064 Voltage Regulator 2019-04-15 17:19:53 -07:00
irps5401.c hwmon: (pmbus) Add Infineon IRPS5401 driver 2019-06-23 18:33:01 -07:00
isl68137.c hwmon: (pmbus/isl68137) Fix up chip IDs 2020-04-12 15:12:51 -07:00
Kconfig hwmon: (pmbus) add support for 2nd Gen Renesas digital multiphase 2020-03-22 16:42:21 -07:00
lm25066.c hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support 2020-03-08 20:35:47 -07:00
ltc2978.c hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support 2020-03-08 20:35:47 -07:00
ltc3815.c hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support 2020-03-08 20:35:47 -07:00
Makefile hwmon: (pmbus) Add support for Infineon Multi-phase xdpe122 family controllers 2020-01-23 13:15:10 -08:00
max8688.c hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support 2020-03-08 20:35:47 -07:00
max16064.c hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support 2020-03-08 20:35:47 -07:00
max20730.c hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support 2020-03-08 20:35:47 -07:00
max20751.c hwmon: (pmbus/core) Add support for vid mode detection per page bases 2020-01-23 13:15:10 -08:00
max31785.c hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support 2020-03-08 20:35:47 -07:00
max34440.c hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support 2020-03-08 20:35:47 -07:00
pmbus_core.c hwmon: (pmbus) Improve initialization of 'currpage' and 'currphase' 2020-05-22 06:28:38 -07:00
pmbus.c hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support 2020-03-08 20:35:47 -07:00
pmbus.h hwmon: (pmbus) Implement multi-phase support 2020-03-08 20:35:47 -07:00
pxe1610.c hwmon: (pmbus/core) Add support for vid mode detection per page bases 2020-01-23 13:15:10 -08:00
tps40422.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
tps53679.c hwmon: (pmbus/tps53679) Add support for TPS53647 and TPS53667 2020-03-08 20:35:47 -07:00
ucd9000.c hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support 2020-03-08 20:35:47 -07:00
ucd9200.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61 2019-05-24 17:36:45 +02:00
xdpe12284.c hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support 2020-03-08 20:35:47 -07:00
zl6100.c hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support 2020-03-08 20:35:47 -07:00