From: anthony.olech.opensource@diasemi.com Date: Thu, 6 Feb 2014 17:33:24 +0000 (+0000) Subject: mfd: da9052: Fix volatile register definition ommissions X-Git-Tag: v4.14-rc1~7736^2~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcb5a7d335da73a798d8a8f6ce9a8605d25426f4;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Anthony Olech Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/da9052-core.c b/drivers/mfd/da9052-core.c index 25838f10b..e8af816 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: