linux_dsm_epyc7002/drivers/hwmon/pmbus
Chu Lin 6d1d41c075 hwmon: (adm1275) Make sure we are reading enough data for different chips
Issue:
When PEC is enabled, binding adm1272 to the adm1275 would
fail due to PEC error. See below:
adm1275: probe of xxxx failed with error -74

Diagnosis:
Per the datasheet of adm1272, adm1278, adm1293 and amd1294,
PMON_CONFIG (0xd4) is 16bits wide. On the other hand,
PMON_CONFIG (0xd4) for adm1275 is 8bits wide. The driver should not
assume everything is 8bits wide and read only 8bits from it.

Solution:
If it is adm1272, adm1278, adm1293 and adm1294, use i2c_read_word.
Else, use i2c_read_byte

Testing:
Binding adm1272 to the driver.
The change is only tested on adm1272.

Signed-off-by: Chu Lin <linchuyuan@google.com>
Link: https://lore.kernel.org/r/20200709040612.3977094-1-linchuyuan@google.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2020-07-09 07:02:35 -07:00
..
adm1275.c hwmon: (adm1275) Make sure we are reading enough data for different chips 2020-07-09 07:02:35 -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) fix a typo in Kconfig SENSORS_IR35221 option 2020-07-02 17:43:14 -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) Driver for Maxim MAX16601 2020-05-22 06:28:38 -07: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
max16601.c hwmon: (pmbus) Driver for Maxim MAX16601 2020-05-22 06:28:38 -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) Fix page vs. register when accessing fans 2020-06-23 06:31:28 -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