LKML Archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 00/13] regulator: convert to use maple tree register cache
@ 2024-03-20  8:57 Bo Liu
  2024-03-20  8:57 ` [PATCH v1 01/13] regulator: da9121: " Bo Liu
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: Bo Liu @ 2024-03-20  8:57 UTC (permalink / raw
  To: support.opensource, lgirdwood, broonie, matthias.bgg,
	angelogioacchino.delregno, jagan
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, Bo Liu

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.

Bo Liu (13):
  regulator: da9121: convert to use maple tree register cache
  regulator: da9211: convert to use maple tree register cache
  regulator: isl9305: convert to use maple tree register cache
  regulator: max8973: convert to use maple tree register cache
  regulator: mt6311: convert to use maple tree register cache
  regulator: pca9450: convert to use maple tree register cache
  regulator: pf8x00: convert to use maple tree register cache
  regulator: pfuze100: convert to use maple tree register cache
  regulator: rtmv20: convert to use maple tree register cache
  regulator: rtq6752: convert to use maple tree register cache
  regulator: tps51632: convert to use maple tree register cache
  regulator: tps62360: convert to use maple tree register cache
  regulator: rpi-panel-attiny: convert to use maple tree register cache

 drivers/regulator/da9121-regulator.c           | 4 ++--
 drivers/regulator/da9211-regulator.c           | 2 +-
 drivers/regulator/isl9305.c                    | 2 +-
 drivers/regulator/max8973-regulator.c          | 2 +-
 drivers/regulator/mt6311-regulator.c           | 2 +-
 drivers/regulator/pca9450-regulator.c          | 2 +-
 drivers/regulator/pf8x00-regulator.c           | 2 +-
 drivers/regulator/pfuze100-regulator.c         | 2 +-
 drivers/regulator/rpi-panel-attiny-regulator.c | 2 +-
 drivers/regulator/rtmv20-regulator.c           | 2 +-
 drivers/regulator/rtq6752-regulator.c          | 2 +-
 drivers/regulator/tps51632-regulator.c         | 2 +-
 drivers/regulator/tps62360-regulator.c         | 2 +-
 13 files changed, 14 insertions(+), 14 deletions(-)

-- 
2.18.2


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH v1 01/13] regulator: da9121: convert to use maple tree register cache
  2024-03-20  8:57 [PATCH v1 00/13] regulator: convert to use maple tree register cache Bo Liu
@ 2024-03-20  8:57 ` Bo Liu
  2024-03-20  8:57 ` [PATCH v1 02/13] regulator: da9211: " Bo Liu
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Bo Liu @ 2024-03-20  8:57 UTC (permalink / raw
  To: support.opensource, lgirdwood, broonie, matthias.bgg,
	angelogioacchino.delregno, jagan
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, Bo Liu

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.

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 drivers/regulator/da9121-regulator.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/da9121-regulator.c b/drivers/regulator/da9121-regulator.c
index 5ee76b533576..96257551bb12 100644
--- a/drivers/regulator/da9121-regulator.c
+++ b/drivers/regulator/da9121-regulator.c
@@ -872,7 +872,7 @@ static struct regmap_config da9121_1ch_regmap_config = {
 	.rd_table = &da9121_1ch_readable_table,
 	.wr_table = &da9121_1ch_writeable_table,
 	.volatile_table = &da9121_volatile_table,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 
 /* DA9121 regmap config for 2 channel variants */
@@ -883,7 +883,7 @@ static struct regmap_config da9121_2ch_regmap_config = {
 	.rd_table = &da9121_2ch_readable_table,
 	.wr_table = &da9121_2ch_writeable_table,
 	.volatile_table = &da9121_volatile_table,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 
 static int da9121_check_device_type(struct i2c_client *i2c, struct da9121 *chip)
-- 
2.18.2


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v1 02/13] regulator: da9211: convert to use maple tree register cache
  2024-03-20  8:57 [PATCH v1 00/13] regulator: convert to use maple tree register cache Bo Liu
  2024-03-20  8:57 ` [PATCH v1 01/13] regulator: da9121: " Bo Liu
@ 2024-03-20  8:57 ` Bo Liu
  2024-03-20  8:57 ` [PATCH v1 03/13] regulator: isl9305: " Bo Liu
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Bo Liu @ 2024-03-20  8:57 UTC (permalink / raw
  To: support.opensource, lgirdwood, broonie, matthias.bgg,
	angelogioacchino.delregno, jagan
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, Bo Liu

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.

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 drivers/regulator/da9211-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/da9211-regulator.c b/drivers/regulator/da9211-regulator.c
index af383ff0fe57..d8b39ea3de0e 100644
--- a/drivers/regulator/da9211-regulator.c
+++ b/drivers/regulator/da9211-regulator.c
@@ -68,7 +68,7 @@ static const struct regmap_config da9211_regmap_config = {
 	.val_bits = 8,
 	.max_register = 5 * 128,
 	.volatile_reg = da9211_volatile_reg,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.ranges = da9211_regmap_range,
 	.num_ranges = ARRAY_SIZE(da9211_regmap_range),
 };
-- 
2.18.2


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v1 03/13] regulator: isl9305: convert to use maple tree register cache
  2024-03-20  8:57 [PATCH v1 00/13] regulator: convert to use maple tree register cache Bo Liu
  2024-03-20  8:57 ` [PATCH v1 01/13] regulator: da9121: " Bo Liu
  2024-03-20  8:57 ` [PATCH v1 02/13] regulator: da9211: " Bo Liu
@ 2024-03-20  8:57 ` Bo Liu
  2024-03-20  8:57 ` [PATCH v1 04/13] regulator: max8973: " Bo Liu
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Bo Liu @ 2024-03-20  8:57 UTC (permalink / raw
  To: support.opensource, lgirdwood, broonie, matthias.bgg,
	angelogioacchino.delregno, jagan
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, Bo Liu

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.

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 drivers/regulator/isl9305.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/isl9305.c b/drivers/regulator/isl9305.c
index 0f7560093091..5a234f25e6bb 100644
--- a/drivers/regulator/isl9305.c
+++ b/drivers/regulator/isl9305.c
@@ -134,7 +134,7 @@ static const struct regmap_config isl9305_regmap = {
 	.val_bits = 8,
 
 	.max_register = ISL9305_MAX_REG,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 
 static int isl9305_i2c_probe(struct i2c_client *i2c)
-- 
2.18.2


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v1 04/13] regulator: max8973: convert to use maple tree register cache
  2024-03-20  8:57 [PATCH v1 00/13] regulator: convert to use maple tree register cache Bo Liu
                   ` (2 preceding siblings ...)
  2024-03-20  8:57 ` [PATCH v1 03/13] regulator: isl9305: " Bo Liu
@ 2024-03-20  8:57 ` Bo Liu
  2024-03-20  8:57 ` [PATCH v1 05/13] regulator: mt6311: " Bo Liu
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Bo Liu @ 2024-03-20  8:57 UTC (permalink / raw
  To: support.opensource, lgirdwood, broonie, matthias.bgg,
	angelogioacchino.delregno, jagan
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, Bo Liu

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.

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 drivers/regulator/max8973-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/max8973-regulator.c b/drivers/regulator/max8973-regulator.c
index f8bb6828feef..96ca146281d6 100644
--- a/drivers/regulator/max8973-regulator.c
+++ b/drivers/regulator/max8973-regulator.c
@@ -510,7 +510,7 @@ static const struct regmap_config max8973_regmap_config = {
 	.reg_bits		= 8,
 	.val_bits		= 8,
 	.max_register		= MAX8973_CHIPID2,
-	.cache_type		= REGCACHE_RBTREE,
+	.cache_type		= REGCACHE_MAPLE,
 };
 
 static struct max8973_regulator_platform_data *max8973_parse_dt(
-- 
2.18.2


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v1 05/13] regulator: mt6311: convert to use maple tree register cache
  2024-03-20  8:57 [PATCH v1 00/13] regulator: convert to use maple tree register cache Bo Liu
                   ` (3 preceding siblings ...)
  2024-03-20  8:57 ` [PATCH v1 04/13] regulator: max8973: " Bo Liu
@ 2024-03-20  8:57 ` Bo Liu
  2024-03-20  8:57 ` [PATCH v1 06/13] regulator: pca9450: " Bo Liu
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Bo Liu @ 2024-03-20  8:57 UTC (permalink / raw
  To: support.opensource, lgirdwood, broonie, matthias.bgg,
	angelogioacchino.delregno, jagan
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, Bo Liu

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.

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 drivers/regulator/mt6311-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/mt6311-regulator.c b/drivers/regulator/mt6311-regulator.c
index 63a51485f2cc..c00638cd2d1e 100644
--- a/drivers/regulator/mt6311-regulator.c
+++ b/drivers/regulator/mt6311-regulator.c
@@ -20,7 +20,7 @@ static const struct regmap_config mt6311_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
 	.max_register = MT6311_FQMTR_CON4,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 
 /* Default limits measured in millivolts and milliamps */
-- 
2.18.2


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v1 06/13] regulator: pca9450: convert to use maple tree register cache
  2024-03-20  8:57 [PATCH v1 00/13] regulator: convert to use maple tree register cache Bo Liu
                   ` (4 preceding siblings ...)
  2024-03-20  8:57 ` [PATCH v1 05/13] regulator: mt6311: " Bo Liu
@ 2024-03-20  8:57 ` Bo Liu
  2024-03-20  8:57 ` [PATCH v1 07/13] regulator: pf8x00: " Bo Liu
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Bo Liu @ 2024-03-20  8:57 UTC (permalink / raw
  To: support.opensource, lgirdwood, broonie, matthias.bgg,
	angelogioacchino.delregno, jagan
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, Bo Liu

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.

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 drivers/regulator/pca9450-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/pca9450-regulator.c b/drivers/regulator/pca9450-regulator.c
index 2ab365d2749f..8781e58b74f7 100644
--- a/drivers/regulator/pca9450-regulator.c
+++ b/drivers/regulator/pca9450-regulator.c
@@ -53,7 +53,7 @@ static const struct regmap_config pca9450_regmap_config = {
 	.val_bits = 8,
 	.volatile_table = &pca9450_volatile_regs,
 	.max_register = PCA9450_MAX_REGISTER - 1,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 
 /*
-- 
2.18.2


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v1 07/13] regulator: pf8x00: convert to use maple tree register cache
  2024-03-20  8:57 [PATCH v1 00/13] regulator: convert to use maple tree register cache Bo Liu
                   ` (5 preceding siblings ...)
  2024-03-20  8:57 ` [PATCH v1 06/13] regulator: pca9450: " Bo Liu
@ 2024-03-20  8:57 ` Bo Liu
  2024-03-20  8:57 ` [PATCH v1 08/13] regulator: pfuze100: " Bo Liu
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Bo Liu @ 2024-03-20  8:57 UTC (permalink / raw
  To: support.opensource, lgirdwood, broonie, matthias.bgg,
	angelogioacchino.delregno, jagan
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, Bo Liu

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.

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 drivers/regulator/pf8x00-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/pf8x00-regulator.c b/drivers/regulator/pf8x00-regulator.c
index b0781d9a1058..9fd8e0949b32 100644
--- a/drivers/regulator/pf8x00-regulator.c
+++ b/drivers/regulator/pf8x00-regulator.c
@@ -142,7 +142,7 @@ static const struct regmap_config pf8x00_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
 	.max_register = PF8X00_PAGE_SELECT,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 
 /* VLDOx output: 1.5V to 5.0V */
-- 
2.18.2


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v1 08/13] regulator: pfuze100: convert to use maple tree register cache
  2024-03-20  8:57 [PATCH v1 00/13] regulator: convert to use maple tree register cache Bo Liu
                   ` (6 preceding siblings ...)
  2024-03-20  8:57 ` [PATCH v1 07/13] regulator: pf8x00: " Bo Liu
@ 2024-03-20  8:57 ` Bo Liu
  2024-03-20  8:57 ` [PATCH v1 09/13] regulator: rtmv20: " Bo Liu
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Bo Liu @ 2024-03-20  8:57 UTC (permalink / raw
  To: support.opensource, lgirdwood, broonie, matthias.bgg,
	angelogioacchino.delregno, jagan
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, Bo Liu

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.

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 drivers/regulator/pfuze100-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c
index 46854602b3ea..7c04870442d3 100644
--- a/drivers/regulator/pfuze100-regulator.c
+++ b/drivers/regulator/pfuze100-regulator.c
@@ -680,7 +680,7 @@ static const struct regmap_config pfuze_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
 	.max_register = PFUZE_NUMREGS - 1,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 
 static int pfuze100_regulator_probe(struct i2c_client *client)
-- 
2.18.2


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v1 09/13] regulator: rtmv20: convert to use maple tree register cache
  2024-03-20  8:57 [PATCH v1 00/13] regulator: convert to use maple tree register cache Bo Liu
                   ` (7 preceding siblings ...)
  2024-03-20  8:57 ` [PATCH v1 08/13] regulator: pfuze100: " Bo Liu
@ 2024-03-20  8:57 ` Bo Liu
  2024-03-20  8:57 ` [PATCH v1 10/13] regulator: rtq6752: " Bo Liu
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Bo Liu @ 2024-03-20  8:57 UTC (permalink / raw
  To: support.opensource, lgirdwood, broonie, matthias.bgg,
	angelogioacchino.delregno, jagan
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, Bo Liu

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.

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 drivers/regulator/rtmv20-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/rtmv20-regulator.c b/drivers/regulator/rtmv20-regulator.c
index dfd1522637e4..3d8d29f87b58 100644
--- a/drivers/regulator/rtmv20-regulator.c
+++ b/drivers/regulator/rtmv20-regulator.c
@@ -312,7 +312,7 @@ static bool rtmv20_is_volatile_reg(struct device *dev, unsigned int reg)
 static const struct regmap_config rtmv20_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.max_register = RTMV20_REG_LDMASK,
 	.num_reg_defaults_raw = RTMV20_MAX_REGS,
 
-- 
2.18.2


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v1 10/13] regulator: rtq6752: convert to use maple tree register cache
  2024-03-20  8:57 [PATCH v1 00/13] regulator: convert to use maple tree register cache Bo Liu
                   ` (8 preceding siblings ...)
  2024-03-20  8:57 ` [PATCH v1 09/13] regulator: rtmv20: " Bo Liu
@ 2024-03-20  8:57 ` Bo Liu
  2024-03-20  8:57 ` [PATCH v1 11/13] regulator: tps51632: " Bo Liu
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Bo Liu @ 2024-03-20  8:57 UTC (permalink / raw
  To: support.opensource, lgirdwood, broonie, matthias.bgg,
	angelogioacchino.delregno, jagan
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, Bo Liu

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.

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 drivers/regulator/rtq6752-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/rtq6752-regulator.c b/drivers/regulator/rtq6752-regulator.c
index 8176e5ab0683..d35d844eff3b 100644
--- a/drivers/regulator/rtq6752-regulator.c
+++ b/drivers/regulator/rtq6752-regulator.c
@@ -209,7 +209,7 @@ static const struct reg_default rtq6752_reg_defaults[] = {
 static const struct regmap_config rtq6752_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.max_register = RTQ6752_REG_FAULT,
 	.reg_defaults = rtq6752_reg_defaults,
 	.num_reg_defaults = ARRAY_SIZE(rtq6752_reg_defaults),
-- 
2.18.2


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v1 11/13] regulator: tps51632: convert to use maple tree register cache
  2024-03-20  8:57 [PATCH v1 00/13] regulator: convert to use maple tree register cache Bo Liu
                   ` (9 preceding siblings ...)
  2024-03-20  8:57 ` [PATCH v1 10/13] regulator: rtq6752: " Bo Liu
@ 2024-03-20  8:57 ` Bo Liu
  2024-03-20  8:57 ` [PATCH v1 12/13] regulator: tps62360: " Bo Liu
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Bo Liu @ 2024-03-20  8:57 UTC (permalink / raw
  To: support.opensource, lgirdwood, broonie, matthias.bgg,
	angelogioacchino.delregno, jagan
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, Bo Liu

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.

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 drivers/regulator/tps51632-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/tps51632-regulator.c b/drivers/regulator/tps51632-regulator.c
index 5199e0437388..3a384bf9d2c5 100644
--- a/drivers/regulator/tps51632-regulator.c
+++ b/drivers/regulator/tps51632-regulator.c
@@ -199,7 +199,7 @@ static const struct regmap_config tps51632_regmap_config = {
 	.readable_reg		= is_read_reg,
 	.volatile_reg		= is_volatile_reg,
 	.max_register		= TPS51632_MAX_REG - 1,
-	.cache_type		= REGCACHE_RBTREE,
+	.cache_type		= REGCACHE_MAPLE,
 };
 
 #if defined(CONFIG_OF)
-- 
2.18.2


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v1 12/13] regulator: tps62360: convert to use maple tree register cache
  2024-03-20  8:57 [PATCH v1 00/13] regulator: convert to use maple tree register cache Bo Liu
                   ` (10 preceding siblings ...)
  2024-03-20  8:57 ` [PATCH v1 11/13] regulator: tps51632: " Bo Liu
@ 2024-03-20  8:57 ` Bo Liu
  2024-03-20  8:57 ` [PATCH v1 13/13] regulator: rpi-panel-attiny: " Bo Liu
  2024-03-26 12:39 ` [PATCH v1 00/13] regulator: " Mark Brown
  13 siblings, 0 replies; 15+ messages in thread
From: Bo Liu @ 2024-03-20  8:57 UTC (permalink / raw
  To: support.opensource, lgirdwood, broonie, matthias.bgg,
	angelogioacchino.delregno, jagan
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, Bo Liu

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.

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 drivers/regulator/tps62360-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/tps62360-regulator.c b/drivers/regulator/tps62360-regulator.c
index 32e1a05a57fd..be6a6702cbfa 100644
--- a/drivers/regulator/tps62360-regulator.c
+++ b/drivers/regulator/tps62360-regulator.c
@@ -275,7 +275,7 @@ static const struct regmap_config tps62360_regmap_config = {
 	.reg_bits		= 8,
 	.val_bits		= 8,
 	.max_register		= REG_CHIPID,
-	.cache_type		= REGCACHE_RBTREE,
+	.cache_type		= REGCACHE_MAPLE,
 };
 
 static struct tps62360_regulator_platform_data *
-- 
2.18.2


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH v1 13/13] regulator: rpi-panel-attiny: convert to use maple tree register cache
  2024-03-20  8:57 [PATCH v1 00/13] regulator: convert to use maple tree register cache Bo Liu
                   ` (11 preceding siblings ...)
  2024-03-20  8:57 ` [PATCH v1 12/13] regulator: tps62360: " Bo Liu
@ 2024-03-20  8:57 ` Bo Liu
  2024-03-26 12:39 ` [PATCH v1 00/13] regulator: " Mark Brown
  13 siblings, 0 replies; 15+ messages in thread
From: Bo Liu @ 2024-03-20  8:57 UTC (permalink / raw
  To: support.opensource, lgirdwood, broonie, matthias.bgg,
	angelogioacchino.delregno, jagan
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, Bo Liu

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.

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 drivers/regulator/rpi-panel-attiny-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/rpi-panel-attiny-regulator.c b/drivers/regulator/rpi-panel-attiny-regulator.c
index f52c3d47ecea..6c3b6bfac961 100644
--- a/drivers/regulator/rpi-panel-attiny-regulator.c
+++ b/drivers/regulator/rpi-panel-attiny-regulator.c
@@ -75,7 +75,7 @@ static const struct regmap_config attiny_regmap_config = {
 	.val_bits = 8,
 	.disable_locking = 1,
 	.max_register = REG_WRITE_DATA_L,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 
 static int attiny_set_port_state(struct attiny_lcd *state, int reg, u8 val)
-- 
2.18.2


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [PATCH v1 00/13] regulator: convert to use maple tree register cache
  2024-03-20  8:57 [PATCH v1 00/13] regulator: convert to use maple tree register cache Bo Liu
                   ` (12 preceding siblings ...)
  2024-03-20  8:57 ` [PATCH v1 13/13] regulator: rpi-panel-attiny: " Bo Liu
@ 2024-03-26 12:39 ` Mark Brown
  13 siblings, 0 replies; 15+ messages in thread
From: Mark Brown @ 2024-03-26 12:39 UTC (permalink / raw
  To: support.opensource, lgirdwood, matthias.bgg,
	angelogioacchino.delregno, jagan, Bo Liu
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek

On Wed, 20 Mar 2024 04:57:27 -0400, Bo Liu wrote:
> 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.
> 
> Bo Liu (13):
>   regulator: da9121: convert to use maple tree register cache
>   regulator: da9211: convert to use maple tree register cache
>   regulator: isl9305: convert to use maple tree register cache
>   regulator: max8973: convert to use maple tree register cache
>   regulator: mt6311: convert to use maple tree register cache
>   regulator: pca9450: convert to use maple tree register cache
>   regulator: pf8x00: convert to use maple tree register cache
>   regulator: pfuze100: convert to use maple tree register cache
>   regulator: rtmv20: convert to use maple tree register cache
>   regulator: rtq6752: convert to use maple tree register cache
>   regulator: tps51632: convert to use maple tree register cache
>   regulator: tps62360: convert to use maple tree register cache
>   regulator: rpi-panel-attiny: convert to use maple tree register cache
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[01/13] regulator: da9121: convert to use maple tree register cache
        commit: d92eb7c333c5ac8d8add10d5a211ac9c405e4393
[02/13] regulator: da9211: convert to use maple tree register cache
        commit: 03ddbcbe2f1ca9fac2759849be6714d8e82aa331
[03/13] regulator: isl9305: convert to use maple tree register cache
        commit: 66a4ead5ed9393d250105fcbe6e3525e1cdd977a
[04/13] regulator: max8973: convert to use maple tree register cache
        commit: 36649db5b216a85cfd7937a289c4cdd0b4b69126
[05/13] regulator: mt6311: convert to use maple tree register cache
        commit: bc125125125c10ec14764d153227c95ad0fd0b48
[06/13] regulator: pca9450: convert to use maple tree register cache
        commit: 0b03e9cb8b137490f4adedf07482384ffeee7145
[07/13] regulator: pf8x00: convert to use maple tree register cache
        commit: cea065dced280306ff5a4f7adfeb3773c49b2818
[08/13] regulator: pfuze100: convert to use maple tree register cache
        commit: 0332f074f5c3d8c2a32db24c9dcc3c3f13056cef
[09/13] regulator: rtmv20: convert to use maple tree register cache
        commit: 43edba6b670bc4f5426e77873b400fe91f8d3c75
[10/13] regulator: rtq6752: convert to use maple tree register cache
        commit: 81c180e77d60755ca5ff217786e2f427ccab04e0
[11/13] regulator: tps51632: convert to use maple tree register cache
        commit: 9500d38e50d0cfd33536454a204dedb9d47d84a3
[12/13] regulator: tps62360: convert to use maple tree register cache
        commit: fe258f54c0a85c1bfc0e836e20c3e4e52f1a8318
[13/13] regulator: rpi-panel-attiny: convert to use maple tree register cache
        commit: ab470abe58c09b2fbe2c1478e67a904fd803e84f

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-03-26 12:39 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-20  8:57 [PATCH v1 00/13] regulator: convert to use maple tree register cache Bo Liu
2024-03-20  8:57 ` [PATCH v1 01/13] regulator: da9121: " Bo Liu
2024-03-20  8:57 ` [PATCH v1 02/13] regulator: da9211: " Bo Liu
2024-03-20  8:57 ` [PATCH v1 03/13] regulator: isl9305: " Bo Liu
2024-03-20  8:57 ` [PATCH v1 04/13] regulator: max8973: " Bo Liu
2024-03-20  8:57 ` [PATCH v1 05/13] regulator: mt6311: " Bo Liu
2024-03-20  8:57 ` [PATCH v1 06/13] regulator: pca9450: " Bo Liu
2024-03-20  8:57 ` [PATCH v1 07/13] regulator: pf8x00: " Bo Liu
2024-03-20  8:57 ` [PATCH v1 08/13] regulator: pfuze100: " Bo Liu
2024-03-20  8:57 ` [PATCH v1 09/13] regulator: rtmv20: " Bo Liu
2024-03-20  8:57 ` [PATCH v1 10/13] regulator: rtq6752: " Bo Liu
2024-03-20  8:57 ` [PATCH v1 11/13] regulator: tps51632: " Bo Liu
2024-03-20  8:57 ` [PATCH v1 12/13] regulator: tps62360: " Bo Liu
2024-03-20  8:57 ` [PATCH v1 13/13] regulator: rpi-panel-attiny: " Bo Liu
2024-03-26 12:39 ` [PATCH v1 00/13] regulator: " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).