Skip to contentSkip to conversation

mfd: Enable rbtree cache for wm831x devices

PATCH In review Mark Brown 2 participants 2 messages Oct 14, 2011 – Oct 15, 2011

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 mfd: Enable rbtree cache for wm831x devices

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.

---

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(-)
drivers/mfd/wm831x-core.c +2 -0
index e758c89..0a2b8d4 100644
@@ -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,
Signature · 1 line
1.7.6.3
Acked-by on v1 1/1
#1 lore raw

Hi Mark,

Quoted 9 lines · 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.

---

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:

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/