Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

anthony.olech.opensource@diasemi.com and committed by
Lee Jones
bcb5a7d3 ad09dd6a

+3
+3
drivers/mfd/da9052-core.c
··· 279 279 case DA9052_EVENT_B_REG: 280 280 case DA9052_EVENT_C_REG: 281 281 case DA9052_EVENT_D_REG: 282 + case DA9052_CONTROL_B_REG: 283 + case DA9052_CONTROL_D_REG: 284 + case DA9052_SUPPLY_REG: 282 285 case DA9052_FAULTLOG_REG: 283 286 case DA9052_CHG_TIME_REG: 284 287 case DA9052_ADC_RES_L_REG: