mfd: wm5102: Mark DSP memory regions as volatile and readable
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 27 Jan 2013 04:07:23 +0000 (12:07 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 13 Feb 2013 23:22:47 +0000 (00:22 +0100)
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>
drivers/mfd/wm5102-tables.c

index 74f9853b6dc4b67493bc6e56ff31dd4ab4b4e48b..6655c9e89e92fbf55dc986fe1ffe1b1dc65088c1 100644 (file)
@@ -1826,7 +1826,13 @@ static bool wm5102_readable_register(struct device *dev, unsigned int reg)
        case ARIZONA_DSP1_STATUS_3:
                return true;
        default:
-               return false;
+               if ((reg >= 0x100000 && reg < 0x106000) ||
+                   (reg >= 0x180000 && reg < 0x180800) ||
+                   (reg >= 0x190000 && reg < 0x194800) ||
+                   (reg >= 0x1a8000 && reg < 0x1a9800))
+                       return true;
+               else
+                       return false;
        }
 }