* [PATCH] mfd: Enable rbtree cache for wm831x devices
@ 2011-10-14 20:06 Mark Brown
2011-10-15 1:18 ` Samuel Ortiz
0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2011-10-14 20:06 UTC (permalink / raw)
To: Samuel Ortiz; +Cc: linux-kernel, patches, Mark Brown
Most useful with the regulators where we're doing a lot of read/modify/write
updates in potentially performance critical paths. Providing some defaults
would make this slightly better but this is a win right now.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
Samuel, this depends on the regmap code in -next so I'd like to merge
it via regmap if that's OK with you?
drivers/mfd/wm831x-core.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/mfd/wm831x-core.c b/drivers/mfd/wm831x-core.c
index e758c89..0a2b8d4 100644
--- a/drivers/mfd/wm831x-core.c
+++ b/drivers/mfd/wm831x-core.c
@@ -1602,6 +1602,8 @@ struct regmap_config wm831x_regmap_config = {
.reg_bits = 16,
.val_bits = 16,
+ .cache_type = REGCACHE_RBTREE,
+
.max_register = WM831X_DBE_CHECK_DATA,
.readable_reg = wm831x_reg_readable,
.writeable_reg = wm831x_reg_writeable,
--
1.7.6.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mfd: Enable rbtree cache for wm831x devices
2011-10-14 20:06 [PATCH] mfd: Enable rbtree cache for wm831x devices Mark Brown
@ 2011-10-15 1:18 ` Samuel Ortiz
0 siblings, 0 replies; 2+ messages in thread
From: Samuel Ortiz @ 2011-10-15 1:18 UTC (permalink / raw)
To: Mark Brown; +Cc: linux-kernel, patches
Hi Mark,
On Fri, Oct 14, 2011 at 09:06:26PM +0100, Mark Brown wrote:
> Most useful with the regulators where we're doing a lot of read/modify/write
> updates in potentially performance critical paths. Providing some defaults
> would make this slightly better but this is a win right now.
>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
>
> Samuel, this depends on the regmap code in -next so I'd like to merge
> it via regmap if that's OK with you?
I'm fine with it:
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-15 1:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-14 20:06 [PATCH] mfd: Enable rbtree cache for wm831x devices Mark Brown
2011-10-15 1:18 ` Samuel Ortiz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox