Messages in this thread Patch in this message | | | From | Mark Brown <> | Subject | [PATCH] mfd: wm5102: Mark DSP memory regions as volatile | Date | Wed, 28 Nov 2012 19:04:16 +0000 |
| |
We can cache some of them but this is simpler for now.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> --- drivers/mfd/wm5102-tables.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/drivers/mfd/wm5102-tables.c b/drivers/mfd/wm5102-tables.c index 065ffd3..965e60f 100644 --- a/drivers/mfd/wm5102-tables.c +++ b/drivers/mfd/wm5102-tables.c @@ -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: -- 1.7.10.4
| |