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-Url: https://git.stricted.de/?a=commitdiff_plain;h=bcb5a7d335da73a798d8a8f6ce9a8605d25426f4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 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: