[PATCH 1/2] mfd: da9062: Make vbuck_a registers volatile

From: Andrej Picej
Date: Wed Nov 24 2021 - 02:00:18 EST


From: Stefan Riedmueller <s.riedmueller@xxxxxxxxx>

The VBUCK1_A, VBUCK2_A, VBUCK3_A and VBUCK4_A registers are used to set the
desired output voltage of the BUCK 1-4 buck regulators. These values can be
critical if used as input for core voltages. Thus make them volatile so
they do not get cached.

Signed-off-by: Stefan Riedmueller <s.riedmueller@xxxxxxxxx>
Signed-off-by: Andrej Picej <andrej.picej@xxxxxxxxx>
---
drivers/mfd/da9062-core.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/mfd/da9062-core.c b/drivers/mfd/da9062-core.c
index 2774b2cbaea6..c0dad5461946 100644
--- a/drivers/mfd/da9062-core.c
+++ b/drivers/mfd/da9062-core.c
@@ -572,6 +572,8 @@ static const struct regmap_range da9062_aa_volatile_ranges[] = {
regmap_reg_range(DA9062AA_COUNT_S, DA9062AA_SECOND_D),
regmap_reg_range(DA9062AA_SEQ, DA9062AA_SEQ),
regmap_reg_range(DA9062AA_EN_32K, DA9062AA_EN_32K),
+ regmap_reg_range(DA9062AA_VBUCK2_A, DA9062AA_VBUCK2_A),
+ regmap_reg_range(DA9062AA_VBUCK3_A, DA9062AA_VBUCK3_A),
};

static const struct regmap_access_table da9062_aa_readable_table = {
--
2.25.1