Re: [PATCH 01/10] mfd: wm5102: Mark DSP memory regions as volatile and readable
Hi Mark, On Sun, Jan 27, 2013 at 12:07:23PM +0800, Mark Brown wrote: > We can cache some of them but this is simpler for now. > > Signed-off-by: Mark Brown > --- > drivers/mfd/wm5102-tables.c |8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) Applied, thanks. Cheers, Samuel. -- Intel Open Source Technology Centre http://oss.intel.com/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 01/10] mfd: wm5102: Mark DSP memory regions as volatile and readable
Hi Mark, On Sun, Jan 27, 2013 at 12:07:23PM +0800, Mark Brown wrote: We can cache some of them but this is simpler for now. Signed-off-by: Mark Brown broo...@opensource.wolfsonmicro.com --- drivers/mfd/wm5102-tables.c |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) Applied, thanks. Cheers, Samuel. -- Intel Open Source Technology Centre http://oss.intel.com/ -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH 01/10] mfd: wm5102: Mark DSP memory regions as volatile and readable
We can cache some of them but this is simpler for now. Signed-off-by: Mark Brown --- drivers/mfd/wm5102-tables.c |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/wm5102-tables.c b/drivers/mfd/wm5102-tables.c index 088872a..4a01192 100644 --- a/drivers/mfd/wm5102-tables.c +++ b/drivers/mfd/wm5102-tables.c @@ -1825,7 +1825,13 @@ static bool wm5102_readable_register(struct device *dev, unsigned int reg) case ARIZONA_DSP1_STATUS_3: return true; default: - return false; + if ((reg >= 0x10 && reg < 0x106000) || + (reg >= 0x18 && reg < 0x180800) || + (reg >= 0x19 && reg < 0x194800) || + (reg >= 0x1a8000 && reg < 0x1a9800)) + return true; + else + return false; } } -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH 01/10] mfd: wm5102: Mark DSP memory regions as volatile and readable
We can cache some of them but this is simpler for now. Signed-off-by: Mark Brown broo...@opensource.wolfsonmicro.com --- drivers/mfd/wm5102-tables.c |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/wm5102-tables.c b/drivers/mfd/wm5102-tables.c index 088872a..4a01192 100644 --- a/drivers/mfd/wm5102-tables.c +++ b/drivers/mfd/wm5102-tables.c @@ -1825,7 +1825,13 @@ static bool wm5102_readable_register(struct device *dev, unsigned int reg) case ARIZONA_DSP1_STATUS_3: return true; default: - return false; + if ((reg = 0x10 reg 0x106000) || + (reg = 0x18 reg 0x180800) || + (reg = 0x19 reg 0x194800) || + (reg = 0x1a8000 reg 0x1a9800)) + return true; + else + return false; } } -- 1.7.10.4 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/