From bcb5a7d335da73a798d8a8f6ce9a8605d25426f4 Mon Sep 17 00:00:00 2001 From: "anthony.olech.opensource@diasemi.com" Date: Thu, 6 Feb 2014 17:33:24 +0000 Subject: [PATCH] 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 --- drivers/mfd/da9052-core.c | 3 +++ 1 file changed, 3 insertions(+) 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: