diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-11-28 23:04:16 +0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-11-30 14:12:23 +0400 |
commit | 13ea5813238239930d12d28bd7504a3ac6ba14d1 (patch) | |
tree | 8b516c0c242328f4427e573ca7bc086bac026505 /drivers/mfd/wm5102-tables.c | |
parent | 27dff048ccdc15e6680c06ab77433be948492d05 (diff) | |
download | linux-13ea5813238239930d12d28bd7504a3ac6ba14d1.tar.xz |
mfd: wm5102: Mark DSP memory regions as volatile
We can cache some of them but this is simpler for now.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/wm5102-tables.c')
-rw-r--r-- | drivers/mfd/wm5102-tables.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/wm5102-tables.c b/drivers/mfd/wm5102-tables.c index fa91e25f1e55..ccbdd58cf9be 100644 --- a/drivers/mfd/wm5102-tables.c +++ b/drivers/mfd/wm5102-tables.c @@ -2330,6 +2330,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: |