Skip to contentSkip to conversation

mfd: ti: Convert to maple tree register cache

PATCH Applied Mark Brown 2 participants 9 messages Oct 1, 2023 – Oct 5, 2023

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

cover mfd: ti: Convert to maple tree register cache

The maple tree based register cache is based on a more modern data structure and makes more current implementation decisions than the rbtree cache, convert the TI drivers that use rbtree caches to use maple tree instead.

---
Mark Brown (7):
mfd: tps65086: Convert to use maple tree register cache
mfd: tps65090: Convert to use maple tree register cache
mfd: tps65128: Convert to use maple tree register cache
mfd: tps6586x: Convert to use maple tree register cache
mfd: tps65910: Convert to use maple tree register cache
mfd: tps65912: Convert to use maple tree register cache
mfd: twl: Convert to use maple tree register cache

 drivers/mfd/tps65086.c      | 2 +-
 drivers/mfd/tps65090.c      | 2 +-
 drivers/mfd/tps65218.c      | 2 +-
 drivers/mfd/tps6586x.c      | 2 +-
 drivers/mfd/tps65910.c      | 2 +-
 drivers/mfd/tps65912-core.c | 2 +-
 drivers/mfd/twl-core.c      | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

---
base-commit: 6465e260f48790807eef06b583b38ca9789b6072
change-id: 20230929-mfd-ti-maple-7258488c0083

Best regards,

Signature · 1 line
Mark Brown <[email protected]>
author
#1 lore raw

PATCH 1/7 mfd: tps65086: Convert to use maple tree register cache

The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache.

---
 drivers/mfd/tps65086.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/tps65086.c +1 -1
index 9bb7d7d8dcfc..152179ee11ca 100644
@@ -34,7 +34,7 @@ static const struct regmap_access_table tps65086_volatile_table = {
 static const struct regmap_config tps65086_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.volatile_table = &tps65086_volatile_table,
 };
 
Signature · 1 line
2.39.2
author
#2 lore raw

PATCH 2/7 mfd: tps65090: Convert to use maple tree register cache

In reply to Mark Brown

The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache.

---
 drivers/mfd/tps65090.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/tps65090.c +1 -1
index 9245e11219f3..b764badaa62a 100644
@@ -151,7 +151,7 @@ static const struct regmap_config tps65090_regmap_config = {
 	.val_bits = 8,
 	.max_register = TPS65090_MAX_REG,
 	.num_reg_defaults_raw = TPS65090_NUM_REGS,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.volatile_reg = is_volatile_reg,
 };
 
Signature · 1 line
2.39.2
author
#3 lore raw

PATCH 3/7 mfd: tps65128: Convert to use maple tree register cache

In reply to Mark Brown

The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache.

---
 drivers/mfd/tps65218.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/tps65218.c +1 -1
index 11e4e52b56be..427a2b97f117 100644
@@ -127,7 +127,7 @@ static const struct regmap_access_table tps65218_volatile_table = {
 static const struct regmap_config tps65218_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.volatile_table = &tps65218_volatile_table,
 };
 
Signature · 1 line
2.39.2
author
#4 lore raw

PATCH 4/7 mfd: tps6586x: Convert to use maple tree register cache

In reply to Mark Brown

The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache.

---
 drivers/mfd/tps6586x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/tps6586x.c +1 -1
index 55675ceedcd3..378ee626c04d 100644
@@ -454,7 +454,7 @@ static const struct regmap_config tps6586x_regmap_config = {
 	.val_bits = 8,
 	.max_register = TPS6586X_MAX_REGISTER,
 	.volatile_reg = is_volatile_reg,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 
 static struct device *tps6586x_dev;
Signature · 1 line
2.39.2
author
#5 lore raw

PATCH 5/7 mfd: tps65910: Convert to use maple tree register cache

In reply to Mark Brown

The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache.

---
 drivers/mfd/tps65910.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/tps65910.c +1 -1
index 41408df1712f..307d30da274b 100644
@@ -281,7 +281,7 @@ static const struct regmap_config tps65910_regmap_config = {
 	.val_bits = 8,
 	.volatile_reg = is_volatile_reg,
 	.max_register = TPS65910_MAX_REGISTER - 1,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 
 static int tps65910_ck32k_init(struct tps65910 *tps65910,
Signature · 1 line
2.39.2
author
#6 lore raw

PATCH 6/7 mfd: tps65912: Convert to use maple tree register cache

In reply to Mark Brown

The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache.

---
 drivers/mfd/tps65912-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/tps65912-core.c +1 -1
index 7d994b8a5965..2305ea60367a 100644
@@ -81,7 +81,7 @@ static const struct regmap_access_table tps65912_volatile_table = {
 const struct regmap_config tps65912_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.volatile_table = &tps65912_volatile_table,
 };
 EXPORT_SYMBOL_GPL(tps65912_regmap_config);
Signature · 1 line
2.39.2
author
#7 lore raw

PATCH 7/7 mfd: twl: Convert to use maple tree register cache

In reply to Mark Brown

The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache.

---
 drivers/mfd/twl-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/twl-core.c +1 -1
index ce01a87f8dc3..1c1fefbeeb80 100644
@@ -312,7 +312,7 @@ static const struct regmap_config twl4030_regmap_config[4] = {
 
 		.reg_defaults = twl4030_49_defaults,
 		.num_reg_defaults = ARRAY_SIZE(twl4030_49_defaults),
-		.cache_type = REGCACHE_RBTREE,
+		.cache_type = REGCACHE_MAPLE,
 	},
 	{
 		/* Address 0x4a */
Signature · 1 line
2.39.2
maintainer Applied
#8 lore raw
In reply to Mark Brown
Quoted 6 lines · Mark Brown

The maple tree based register cache is based on a more modern data structure and makes more current implementation decisions than the rbtree cache, convert the TI drivers that use rbtree caches to use maple tree instead.

Applied, thanks!

[1/7] mfd: tps65086: Convert to use maple tree register cache

      commit: aa732bb3da329abc28b4eee89efd974acb5b8c36
[2/7] mfd: tps65090: Convert to use maple tree register cache
      commit: 21a3beab2dbf6c0f3fdc45a14dfffbe2d1c53e79
[3/7] mfd: tps65128: Convert to use maple tree register cache
      commit: d252f0f6c8df10559cca85bc8824e9b7c45c1c51
[4/7] mfd: tps6586x: Convert to use maple tree register cache
      commit: 0c16d3d6b758aca06c7c550cc43b8a0368525bba
[5/7] mfd: tps65910: Convert to use maple tree register cache
      commit: f77a3bcff35c1c8bccb347f2f7cf3e25af782984
[6/7] mfd: tps65912: Convert to use maple tree register cache
      commit: 6e554a744ff576223275fbedafccf9d88581b1fd
[7/7] mfd: twl: Convert to use maple tree register cache
      commit: 680d253c3ba0674b8da269e5c51e6caaa623cad5

--
Lee Jones [李琼斯]