diff options
author | anthony.olech.opensource@diasemi.com <anthony.olech.opensource@diasemi.com> | 2014-02-06 17:33:24 +0000 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-03-19 08:58:13 +0000 |
commit | bcb5a7d335da73a798d8a8f6ce9a8605d25426f4 (patch) | |
tree | 389b4c838cc0d88f3cc64725da531f3dab1bdaa9 /drivers/mfd/da9052-core.c | |
parent | ad09dd6a1f5d6244bd89314015af506ba7f9810a (diff) | |
download | linux-bcb5a7d335da73a798d8a8f6ce9a8605d25426f4.tar.bz2 |
mfd: da9052: Fix volatile register definition ommissions
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>
Diffstat (limited to 'drivers/mfd/da9052-core.c')
-rw-r--r-- | drivers/mfd/da9052-core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/da9052-core.c b/drivers/mfd/da9052-core.c index 25838f10b35b..e8af816d73a9 100644 --- a/drivers/mfd/da9052-core.c +++ b/drivers/mfd/da9052-core.c @@ -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: |