mfd: da9052: Fix volatile register definition ommissions
authoranthony.olech.opensource@diasemi.com <anthony.olech.opensource@diasemi.com>
Thu, 6 Feb 2014 17:33:24 +0000 (17:33 +0000)
committerLee Jones <lee.jones@linaro.org>
Wed, 19 Mar 2014 08:58:13 +0000 (08:58 +0000)
Three of the PMIC registers have some bits that are changed
autonomously by the PMIC itself (some time) after being set
by some component driver of the DA9052 PMIC and hence they
need to be marked as volatile so that the regmap API will
not cache their values.

Acked-by: David Dajun Chen <david.chen@diasemi.com>
Signed-off-by: Anthony Olech <anthony.olech.opensource@diasemi.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/da9052-core.c

index 25838f10b35b2d08c295e18b27ecf4155bb5f4ce..e8af816d73a972e26307810ae38c514e17b9ae42 100644 (file)
@@ -279,6 +279,9 @@ static bool da9052_reg_volatile(struct device *dev, unsigned int reg)
        case DA9052_EVENT_B_REG:
        case DA9052_EVENT_C_REG:
        case DA9052_EVENT_D_REG:
+       case DA9052_CONTROL_B_REG:
+       case DA9052_CONTROL_D_REG:
+       case DA9052_SUPPLY_REG:
        case DA9052_FAULTLOG_REG:
        case DA9052_CHG_TIME_REG:
        case DA9052_ADC_RES_L_REG: