public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] clk: Convert Silico Labs drivers to use maple tree register cache
@ 2023-09-29 12:21 Mark Brown
  2023-09-29 12:21 ` [PATCH 1/5] clk: si514: Convert " Mark Brown
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Mark Brown @ 2023-09-29 12:21 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd; +Cc: linux-clk, linux-kernel, Mark Brown

The maple tree register cache uses a more modern data structure than the
rbtree cache and makes implementation choices which are likely to be
more sensible for modern systems so let's convert drivers to use it.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
Mark Brown (5):
      clk: si514: Convert to use maple tree register cache
      clk: si5341: Convert to use maple tree register cache
      clk: si5351: Convert to use maple tree register cache
      clk: si544: Convert to use maple tree register cache
      clk: si570: Convert to use maple tree register cache

 drivers/clk/clk-si514.c  | 2 +-
 drivers/clk/clk-si5341.c | 2 +-
 drivers/clk/clk-si5351.c | 2 +-
 drivers/clk/clk-si544.c  | 2 +-
 drivers/clk/clk-si570.c  | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
---
base-commit: 6465e260f48790807eef06b583b38ca9789b6072
change-id: 20230929-clk-maple-si-d4af02cd3de9

Best regards,
-- 
Mark Brown <broonie@kernel.org>


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

* [PATCH 1/5] clk: si514: Convert to use maple tree register cache
  2023-09-29 12:21 [PATCH 0/5] clk: Convert Silico Labs drivers to use maple tree register cache Mark Brown
@ 2023-09-29 12:21 ` Mark Brown
  2023-10-10  3:30   ` Stephen Boyd
  2023-09-29 12:22 ` [PATCH 2/5] clk: si5341: " Mark Brown
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 11+ messages in thread
From: Mark Brown @ 2023-09-29 12:21 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd; +Cc: linux-clk, linux-kernel, 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.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 drivers/clk/clk-si514.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/clk-si514.c b/drivers/clk/clk-si514.c
index e8c18afac184..6ee148e5469d 100644
--- a/drivers/clk/clk-si514.c
+++ b/drivers/clk/clk-si514.c
@@ -321,7 +321,7 @@ static bool si514_regmap_is_writeable(struct device *dev, unsigned int reg)
 static const struct regmap_config si514_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.max_register = SI514_REG_CONTROL,
 	.writeable_reg = si514_regmap_is_writeable,
 	.volatile_reg = si514_regmap_is_volatile,

-- 
2.39.2


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

* [PATCH 2/5] clk: si5341: Convert to use maple tree register cache
  2023-09-29 12:21 [PATCH 0/5] clk: Convert Silico Labs drivers to use maple tree register cache Mark Brown
  2023-09-29 12:21 ` [PATCH 1/5] clk: si514: Convert " Mark Brown
@ 2023-09-29 12:22 ` Mark Brown
  2023-10-10  3:30   ` Stephen Boyd
  2023-09-29 12:22 ` [PATCH 3/5] clk: si5351: " Mark Brown
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 11+ messages in thread
From: Mark Brown @ 2023-09-29 12:22 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd; +Cc: linux-clk, linux-kernel, 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.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 drivers/clk/clk-si5341.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/clk-si5341.c b/drivers/clk/clk-si5341.c
index 9599857842c7..845b451511d2 100644
--- a/drivers/clk/clk-si5341.c
+++ b/drivers/clk/clk-si5341.c
@@ -1260,7 +1260,7 @@ static int si5341_wait_device_ready(struct i2c_client *client)
 static const struct regmap_config si5341_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.ranges = si5341_regmap_ranges,
 	.num_ranges = ARRAY_SIZE(si5341_regmap_ranges),
 	.max_register = SI5341_REGISTER_MAX,

-- 
2.39.2


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

* [PATCH 3/5] clk: si5351: Convert to use maple tree register cache
  2023-09-29 12:21 [PATCH 0/5] clk: Convert Silico Labs drivers to use maple tree register cache Mark Brown
  2023-09-29 12:21 ` [PATCH 1/5] clk: si514: Convert " Mark Brown
  2023-09-29 12:22 ` [PATCH 2/5] clk: si5341: " Mark Brown
@ 2023-09-29 12:22 ` Mark Brown
  2023-10-10  3:29   ` Stephen Boyd
  2023-09-29 12:22 ` [PATCH 4/5] clk: si544: " Mark Brown
  2023-09-29 12:22 ` [PATCH 5/5] clk: si570: " Mark Brown
  4 siblings, 1 reply; 11+ messages in thread
From: Mark Brown @ 2023-09-29 12:22 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd; +Cc: linux-clk, linux-kernel, 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.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 drivers/clk/clk-si5351.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c
index 00fb9b09e030..cbf7cde01157 100644
--- a/drivers/clk/clk-si5351.c
+++ b/drivers/clk/clk-si5351.c
@@ -206,7 +206,7 @@ static bool si5351_regmap_is_writeable(struct device *dev, unsigned int reg)
 static const struct regmap_config si5351_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.max_register = 187,
 	.writeable_reg = si5351_regmap_is_writeable,
 	.volatile_reg = si5351_regmap_is_volatile,

-- 
2.39.2


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

* [PATCH 4/5] clk: si544: Convert to use maple tree register cache
  2023-09-29 12:21 [PATCH 0/5] clk: Convert Silico Labs drivers to use maple tree register cache Mark Brown
                   ` (2 preceding siblings ...)
  2023-09-29 12:22 ` [PATCH 3/5] clk: si5351: " Mark Brown
@ 2023-09-29 12:22 ` Mark Brown
  2023-10-10  3:29   ` Stephen Boyd
  2023-09-29 12:22 ` [PATCH 5/5] clk: si570: " Mark Brown
  4 siblings, 1 reply; 11+ messages in thread
From: Mark Brown @ 2023-09-29 12:22 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd; +Cc: linux-clk, linux-kernel, 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.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 drivers/clk/clk-si544.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/clk-si544.c b/drivers/clk/clk-si544.c
index 22925968aa35..c4288cf83f9f 100644
--- a/drivers/clk/clk-si544.c
+++ b/drivers/clk/clk-si544.c
@@ -446,7 +446,7 @@ static bool si544_regmap_is_volatile(struct device *dev, unsigned int reg)
 static const struct regmap_config si544_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.max_register = SI544_REG_PAGE_SELECT,
 	.volatile_reg = si544_regmap_is_volatile,
 };

-- 
2.39.2


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

* [PATCH 5/5] clk: si570: Convert to use maple tree register cache
  2023-09-29 12:21 [PATCH 0/5] clk: Convert Silico Labs drivers to use maple tree register cache Mark Brown
                   ` (3 preceding siblings ...)
  2023-09-29 12:22 ` [PATCH 4/5] clk: si544: " Mark Brown
@ 2023-09-29 12:22 ` Mark Brown
  2023-10-10  3:29   ` Stephen Boyd
  4 siblings, 1 reply; 11+ messages in thread
From: Mark Brown @ 2023-09-29 12:22 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd; +Cc: linux-clk, linux-kernel, 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.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 drivers/clk/clk-si570.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/clk-si570.c b/drivers/clk/clk-si570.c
index de0212fb5f87..262f582c9213 100644
--- a/drivers/clk/clk-si570.c
+++ b/drivers/clk/clk-si570.c
@@ -392,7 +392,7 @@ static bool si570_regmap_is_writeable(struct device *dev, unsigned int reg)
 static const struct regmap_config si570_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.max_register = 137,
 	.writeable_reg = si570_regmap_is_writeable,
 	.volatile_reg = si570_regmap_is_volatile,

-- 
2.39.2


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

* Re: [PATCH 5/5] clk: si570: Convert to use maple tree register cache
  2023-09-29 12:22 ` [PATCH 5/5] clk: si570: " Mark Brown
@ 2023-10-10  3:29   ` Stephen Boyd
  0 siblings, 0 replies; 11+ messages in thread
From: Stephen Boyd @ 2023-10-10  3:29 UTC (permalink / raw)
  To: Mark Brown, Michael Turquette; +Cc: linux-clk, linux-kernel, Mark Brown

Quoting Mark Brown (2023-09-29 05:22:03)
> 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: Mark Brown <broonie@kernel.org>
> ---

Applied to clk-next

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

* Re: [PATCH 4/5] clk: si544: Convert to use maple tree register cache
  2023-09-29 12:22 ` [PATCH 4/5] clk: si544: " Mark Brown
@ 2023-10-10  3:29   ` Stephen Boyd
  0 siblings, 0 replies; 11+ messages in thread
From: Stephen Boyd @ 2023-10-10  3:29 UTC (permalink / raw)
  To: Mark Brown, Michael Turquette; +Cc: linux-clk, linux-kernel, Mark Brown

Quoting Mark Brown (2023-09-29 05:22:02)
> 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: Mark Brown <broonie@kernel.org>
> ---

Applied to clk-next

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

* Re: [PATCH 3/5] clk: si5351: Convert to use maple tree register cache
  2023-09-29 12:22 ` [PATCH 3/5] clk: si5351: " Mark Brown
@ 2023-10-10  3:29   ` Stephen Boyd
  0 siblings, 0 replies; 11+ messages in thread
From: Stephen Boyd @ 2023-10-10  3:29 UTC (permalink / raw)
  To: Mark Brown, Michael Turquette; +Cc: linux-clk, linux-kernel, Mark Brown

Quoting Mark Brown (2023-09-29 05:22:01)
> 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: Mark Brown <broonie@kernel.org>
> ---

Applied to clk-next

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

* Re: [PATCH 2/5] clk: si5341: Convert to use maple tree register cache
  2023-09-29 12:22 ` [PATCH 2/5] clk: si5341: " Mark Brown
@ 2023-10-10  3:30   ` Stephen Boyd
  0 siblings, 0 replies; 11+ messages in thread
From: Stephen Boyd @ 2023-10-10  3:30 UTC (permalink / raw)
  To: Mark Brown, Michael Turquette; +Cc: linux-clk, linux-kernel, Mark Brown

Quoting Mark Brown (2023-09-29 05:22:00)
> 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: Mark Brown <broonie@kernel.org>
> ---

Applied to clk-next

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

* Re: [PATCH 1/5] clk: si514: Convert to use maple tree register cache
  2023-09-29 12:21 ` [PATCH 1/5] clk: si514: Convert " Mark Brown
@ 2023-10-10  3:30   ` Stephen Boyd
  0 siblings, 0 replies; 11+ messages in thread
From: Stephen Boyd @ 2023-10-10  3:30 UTC (permalink / raw)
  To: Mark Brown, Michael Turquette; +Cc: linux-clk, linux-kernel, Mark Brown

Quoting Mark Brown (2023-09-29 05:21:59)
> 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: Mark Brown <broonie@kernel.org>
> ---

Applied to clk-next

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

end of thread, other threads:[~2023-10-10  3:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-29 12:21 [PATCH 0/5] clk: Convert Silico Labs drivers to use maple tree register cache Mark Brown
2023-09-29 12:21 ` [PATCH 1/5] clk: si514: Convert " Mark Brown
2023-10-10  3:30   ` Stephen Boyd
2023-09-29 12:22 ` [PATCH 2/5] clk: si5341: " Mark Brown
2023-10-10  3:30   ` Stephen Boyd
2023-09-29 12:22 ` [PATCH 3/5] clk: si5351: " Mark Brown
2023-10-10  3:29   ` Stephen Boyd
2023-09-29 12:22 ` [PATCH 4/5] clk: si544: " Mark Brown
2023-10-10  3:29   ` Stephen Boyd
2023-09-29 12:22 ` [PATCH 5/5] clk: si570: " Mark Brown
2023-10-10  3:29   ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox