提交 bcb5a7d3 编写于 作者: A anthony.olech.opensource@diasemi.com 提交者: Lee Jones

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: NDavid Dajun Chen <david.chen@diasemi.com>
Signed-off-by: NAnthony Olech <anthony.olech.opensource@diasemi.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 ad09dd6a
...@@ -279,6 +279,9 @@ static bool da9052_reg_volatile(struct device *dev, unsigned int reg) ...@@ -279,6 +279,9 @@ static bool da9052_reg_volatile(struct device *dev, unsigned int reg)
case DA9052_EVENT_B_REG: case DA9052_EVENT_B_REG:
case DA9052_EVENT_C_REG: case DA9052_EVENT_C_REG:
case DA9052_EVENT_D_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_FAULTLOG_REG:
case DA9052_CHG_TIME_REG: case DA9052_CHG_TIME_REG:
case DA9052_ADC_RES_L_REG: case DA9052_ADC_RES_L_REG:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册