hwmon: (pmbus/adm1275) Disable ADC while updating PMON_CONFIG
authorGuenter Roeck <linux@roeck-us.net>
Wed, 14 Jun 2023 16:36:05 +0000 (09:36 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 22 Jun 2023 17:39:58 +0000 (10:39 -0700)
commitdd5219ce4f295a129ee38baff308f9c1e4f0761b
tree55fd34774b0b98dd9d7aeb5bbad4aa61560904e1
parent98ac8af4e7b2f260236cf468762450630e73eb67
hwmon: (pmbus/adm1275) Disable ADC while updating PMON_CONFIG

According to ADI, changing PMON_CONFIG while the ADC is running can have
unexpected results. ADI recommends halting the ADC with PMON_CONTROL
before setting PMON_CONFIG and then resume after. Follow ADI
recommendation and disable ADC while PMON_CONFIG is updated.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230614163605.3688964-3-linux@roeck-us.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/adm1275.c