• Nicolin Chen's avatar
    hwmon: (ina3221) Add INA3221_CONFIG to volatile_table · c20217b3
    Nicolin Chen authored
    The MSB (15th bit) of INA3221_CONFIG is a self-clear reset bit.
    So this register should be added to the volatile_table of the
    regmap_config. Otherwise, we will see this bit is sticky in the
    regcache which might accidentally reset the chip when an actual
    write happens to the register.
    
    This might not be a severe bug for the current code line since
    there's no second place touching the INA3221_CONFIG except the
    reset routine in the probe().
    Signed-off-by: default avatarNicolin Chen <nicoleotsuka@gmail.com>
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    c20217b3
ina3221.c 12.7 KB