提交 13ea5813 编写于 作者: M Mark Brown 提交者: Samuel Ortiz

mfd: wm5102: Mark DSP memory regions as volatile

We can cache some of them but this is simpler for now.
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 27dff048
...@@ -2330,6 +2330,9 @@ static bool wm5102_readable_register(struct device *dev, unsigned int reg) ...@@ -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) static bool wm5102_volatile_register(struct device *dev, unsigned int reg)
{ {
if (reg > 0xffff)
return true;
switch (reg) { switch (reg) {
case ARIZONA_SOFTWARE_RESET: case ARIZONA_SOFTWARE_RESET:
case ARIZONA_DEVICE_REVISION: case ARIZONA_DEVICE_REVISION:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册