Skip to contentSkip to conversation

mfd: wm5102: Mark DSP memory regions as volatile

PATCH In review Mark Brown 2 participants 2 messages Nov 28, 2012 – Nov 30, 2012

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 mfd: wm5102: Mark DSP memory regions as volatile

We can cache some of them but this is simpler for now.

---
 drivers/mfd/wm5102-tables.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/mfd/wm5102-tables.c +3 -0
index 065ffd3..965e60f 100644
@@ -1832,6 +1832,9 @@ static bool wm5102_readable_register(struct device *dev, unsigned int reg)
 
 static bool wm5102_volatile_register(struct device *dev, unsigned int reg)
 {
+	if (reg > 0xffff)
+		return true;
+
 	switch (reg) {
 	case ARIZONA_SOFTWARE_RESET:
 	case ARIZONA_DEVICE_REVISION:
Signature · 1 line
1.7.10.4
#1 lore raw

Hi Mark,

Quoted 6 lines · Mark Brown

We can cache some of them but this is simpler for now.

---
 drivers/mfd/wm5102-tables.c |    3 +++
 1 file changed, 3 insertions(+)

Patch applied, thanks.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/