All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache
@ 2023-06-10 13:57 Mark Brown
  2023-06-10 13:57 ` [PATCH 01/16] ASoC: rt1011: Use " Mark Brown
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:57 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

Many of the Realtek I2C/SPI devices only support single register read
and write operations so don't benefit from using the rbtree cache
instead of the more modern maple tree cache, convert them to maple tree.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
Mark Brown (16):
      ASoC: rt1011: Use maple tree register cache
      ASoC: rt1019: Use maple tree register cache
      ASoC: rt1305: Use maple tree register cache
      ASoC: rt1308: Use maple tree register cache
      ASoC: rt5514: Use maple tree register cache
      ASoC: rt5616: Use maple tree register cache
      ASoC: rt5631: Use maple tree register cache
      ASoC: rt5640: Use maple tree register cache
      ASoC: rt5645: Use maple tree register cache
      ASoC: rt5651: Use maple tree register cache
      ASoC: rt5660: Use maple tree register cache
      ASoC: rt5665: Use maple tree register cache
      ASoC: rt5665: Use maple tree register cache
      ASoC: rt5668: Use maple tree register cache
      ASoC: rt5670: Use maple tree register cache
      ASoC: rt5682: Use maple tree register cache

 sound/soc/codecs/rt1011.c     | 2 +-
 sound/soc/codecs/rt1019.c     | 2 +-
 sound/soc/codecs/rt1305.c     | 2 +-
 sound/soc/codecs/rt1308.c     | 2 +-
 sound/soc/codecs/rt5514.c     | 2 +-
 sound/soc/codecs/rt5616.c     | 2 +-
 sound/soc/codecs/rt5631.c     | 2 +-
 sound/soc/codecs/rt5640.c     | 2 +-
 sound/soc/codecs/rt5645.c     | 4 ++--
 sound/soc/codecs/rt5651.c     | 2 +-
 sound/soc/codecs/rt5660.c     | 2 +-
 sound/soc/codecs/rt5663.c     | 4 ++--
 sound/soc/codecs/rt5665.c     | 2 +-
 sound/soc/codecs/rt5668.c     | 2 +-
 sound/soc/codecs/rt5670.c     | 2 +-
 sound/soc/codecs/rt5682-i2c.c | 2 +-
 16 files changed, 18 insertions(+), 18 deletions(-)
---
base-commit: 9561de3a55bed6bdd44a12820ba81ec416e705a7
change-id: 20230609-asoc-rt-maple-8a75e2da9555

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


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

* [PATCH 01/16] ASoC: rt1011: Use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
@ 2023-06-10 13:57 ` Mark Brown
  2023-06-10 13:57 ` [PATCH 02/16] ASoC: rt1019: " Mark Brown
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:57 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

The rt1011 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt1011.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt1011.c b/sound/soc/codecs/rt1011.c
index c1568216126e..443d2f66a4f4 100644
--- a/sound/soc/codecs/rt1011.c
+++ b/sound/soc/codecs/rt1011.c
@@ -2184,7 +2184,7 @@ static const struct regmap_config rt1011_regmap = {
 	.max_register = RT1011_MAX_REG + 1,
 	.volatile_reg = rt1011_volatile_register,
 	.readable_reg = rt1011_readable_register,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt1011_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt1011_reg),
 	.use_single_read = true,

-- 
2.30.2


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

* [PATCH 02/16] ASoC: rt1019: Use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
  2023-06-10 13:57 ` [PATCH 01/16] ASoC: rt1011: Use " Mark Brown
@ 2023-06-10 13:57 ` Mark Brown
  2023-06-10 13:57 ` [PATCH 03/16] ASoC: rt1305: " Mark Brown
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:57 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

The rt1019 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt1019.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt1019.c b/sound/soc/codecs/rt1019.c
index dff2596c81eb..0f7707a605d6 100644
--- a/sound/soc/codecs/rt1019.c
+++ b/sound/soc/codecs/rt1019.c
@@ -535,7 +535,7 @@ static const struct regmap_config rt1019_regmap = {
 	.max_register = RT1019_BEEP_2,
 	.volatile_reg = rt1019_volatile_register,
 	.readable_reg = rt1019_readable_register,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt1019_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt1019_reg),
 };

-- 
2.30.2


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

* [PATCH 03/16] ASoC: rt1305: Use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
  2023-06-10 13:57 ` [PATCH 01/16] ASoC: rt1011: Use " Mark Brown
  2023-06-10 13:57 ` [PATCH 02/16] ASoC: rt1019: " Mark Brown
@ 2023-06-10 13:57 ` Mark Brown
  2023-06-10 13:57 ` [PATCH 04/16] ASoC: rt1308: " Mark Brown
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:57 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

The rt1305 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt1305.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt1305.c b/sound/soc/codecs/rt1305.c
index 5b39a440b6dc..31063f72a04e 100644
--- a/sound/soc/codecs/rt1305.c
+++ b/sound/soc/codecs/rt1305.c
@@ -955,7 +955,7 @@ static const struct regmap_config rt1305_regmap = {
 					       RT1305_PR_SPACING),
 	.volatile_reg = rt1305_volatile_register,
 	.readable_reg = rt1305_readable_register,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt1305_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt1305_reg),
 	.ranges = rt1305_ranges,

-- 
2.30.2


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

* [PATCH 04/16] ASoC: rt1308: Use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
                   ` (2 preceding siblings ...)
  2023-06-10 13:57 ` [PATCH 03/16] ASoC: rt1305: " Mark Brown
@ 2023-06-10 13:57 ` Mark Brown
  2023-06-10 13:57 ` [PATCH 05/16] ASoC: rt5514: " Mark Brown
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:57 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

The rt1308 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt1308.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt1308.c b/sound/soc/codecs/rt1308.c
index d2a8e9fe3e23..c7da8f5459d4 100644
--- a/sound/soc/codecs/rt1308.c
+++ b/sound/soc/codecs/rt1308.c
@@ -773,7 +773,7 @@ static const struct regmap_config rt1308_regmap = {
 	.max_register = RT1308_MAX_REG,
 	.volatile_reg = rt1308_volatile_register,
 	.readable_reg = rt1308_readable_register,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt1308_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt1308_reg),
 	.use_single_read = true,

-- 
2.30.2


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

* [PATCH 05/16] ASoC: rt5514: Use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
                   ` (3 preceding siblings ...)
  2023-06-10 13:57 ` [PATCH 04/16] ASoC: rt1308: " Mark Brown
@ 2023-06-10 13:57 ` Mark Brown
  2023-06-10 13:57 ` [PATCH 06/16] ASoC: rt5616: " Mark Brown
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:57 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

The rt5514 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt5514.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt5514.c b/sound/soc/codecs/rt5514.c
index b9bcf04d4dc9..cebd2087cb72 100644
--- a/sound/soc/codecs/rt5514.c
+++ b/sound/soc/codecs/rt5514.c
@@ -1195,7 +1195,7 @@ static const struct regmap_config rt5514_regmap = {
 	.reg_read = rt5514_i2c_read,
 	.reg_write = rt5514_i2c_write,
 
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt5514_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt5514_reg),
 	.use_single_read = true,

-- 
2.30.2


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

* [PATCH 06/16] ASoC: rt5616: Use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
                   ` (4 preceding siblings ...)
  2023-06-10 13:57 ` [PATCH 05/16] ASoC: rt5514: " Mark Brown
@ 2023-06-10 13:57 ` Mark Brown
  2023-06-10 13:57 ` [PATCH 07/16] ASoC: rt5631: " Mark Brown
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:57 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

The rt5616 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt5616.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt5616.c b/sound/soc/codecs/rt5616.c
index 948abde10463..6009a401620c 100644
--- a/sound/soc/codecs/rt5616.c
+++ b/sound/soc/codecs/rt5616.c
@@ -1315,7 +1315,7 @@ static const struct regmap_config rt5616_regmap = {
 					       RT5616_PR_SPACING),
 	.volatile_reg = rt5616_volatile_register,
 	.readable_reg = rt5616_readable_register,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt5616_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt5616_reg),
 	.ranges = rt5616_ranges,

-- 
2.30.2


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

* [PATCH 07/16] ASoC: rt5631: Use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
                   ` (5 preceding siblings ...)
  2023-06-10 13:57 ` [PATCH 06/16] ASoC: rt5616: " Mark Brown
@ 2023-06-10 13:57 ` Mark Brown
  2023-06-10 13:57 ` [PATCH 08/16] ASoC: rt5640: " Mark Brown
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:57 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

The rt5631 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt5631.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt5631.c b/sound/soc/codecs/rt5631.c
index 55c232413e2b..d3052e6708a3 100644
--- a/sound/soc/codecs/rt5631.c
+++ b/sound/soc/codecs/rt5631.c
@@ -1693,7 +1693,7 @@ static const struct regmap_config rt5631_regmap_config = {
 	.max_register = RT5631_VENDOR_ID2,
 	.reg_defaults = rt5631_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt5631_reg),
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.use_single_read = true,
 	.use_single_write = true,
 };

-- 
2.30.2


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

* [PATCH 08/16] ASoC: rt5640: Use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
                   ` (6 preceding siblings ...)
  2023-06-10 13:57 ` [PATCH 07/16] ASoC: rt5631: " Mark Brown
@ 2023-06-10 13:57 ` Mark Brown
  2023-06-10 13:57 ` [PATCH 09/16] ASoC: rt5645: " Mark Brown
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:57 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

The rt5640 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt5640.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c
index 139257055507..ce4eace5b007 100644
--- a/sound/soc/codecs/rt5640.c
+++ b/sound/soc/codecs/rt5640.c
@@ -2949,7 +2949,7 @@ static const struct regmap_config rt5640_regmap = {
 	.volatile_reg = rt5640_volatile_register,
 	.readable_reg = rt5640_readable_register,
 
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt5640_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt5640_reg),
 	.ranges = rt5640_ranges,

-- 
2.30.2


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

* [PATCH 09/16] ASoC: rt5645: Use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
                   ` (7 preceding siblings ...)
  2023-06-10 13:57 ` [PATCH 08/16] ASoC: rt5640: " Mark Brown
@ 2023-06-10 13:57 ` Mark Brown
  2023-06-10 13:57 ` [PATCH 10/16] ASoC: rt5651: " Mark Brown
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:57 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

The rt5645 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt5645.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index 7c7cbb6362ea..5223742e70e9 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -3546,7 +3546,7 @@ static const struct regmap_config rt5645_regmap = {
 	.volatile_reg = rt5645_volatile_register,
 	.readable_reg = rt5645_readable_register,
 
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt5645_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt5645_reg),
 	.ranges = rt5645_ranges,
@@ -3563,7 +3563,7 @@ static const struct regmap_config rt5650_regmap = {
 	.volatile_reg = rt5645_volatile_register,
 	.readable_reg = rt5645_readable_register,
 
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt5650_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt5650_reg),
 	.ranges = rt5645_ranges,

-- 
2.30.2


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

* [PATCH 10/16] ASoC: rt5651: Use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
                   ` (8 preceding siblings ...)
  2023-06-10 13:57 ` [PATCH 09/16] ASoC: rt5645: " Mark Brown
@ 2023-06-10 13:57 ` Mark Brown
  2023-06-10 13:57 ` [PATCH 11/16] ASoC: rt5660: " Mark Brown
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:57 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

The rt5651 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt5651.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt5651.c b/sound/soc/codecs/rt5651.c
index df90af906563..bf98fdb66cea 100644
--- a/sound/soc/codecs/rt5651.c
+++ b/sound/soc/codecs/rt5651.c
@@ -2172,7 +2172,7 @@ static const struct regmap_config rt5651_regmap = {
 	.volatile_reg = rt5651_volatile_register,
 	.readable_reg = rt5651_readable_register,
 
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt5651_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt5651_reg),
 	.ranges = rt5651_ranges,

-- 
2.30.2


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

* [PATCH 11/16] ASoC: rt5660: Use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
                   ` (9 preceding siblings ...)
  2023-06-10 13:57 ` [PATCH 10/16] ASoC: rt5651: " Mark Brown
@ 2023-06-10 13:57 ` Mark Brown
  2023-06-10 13:57 ` [PATCH 12/16] ASoC: rt5665: " Mark Brown
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:57 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

The rt5660 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt5660.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt5660.c b/sound/soc/codecs/rt5660.c
index 341baa29fdb1..96551cda4ad4 100644
--- a/sound/soc/codecs/rt5660.c
+++ b/sound/soc/codecs/rt5660.c
@@ -1221,7 +1221,7 @@ static const struct regmap_config rt5660_regmap = {
 	.volatile_reg = rt5660_volatile_register,
 	.readable_reg = rt5660_readable_register,
 
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt5660_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt5660_reg),
 	.ranges = rt5660_ranges,

-- 
2.30.2


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

* [PATCH 12/16] ASoC: rt5665: Use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
                   ` (10 preceding siblings ...)
  2023-06-10 13:57 ` [PATCH 11/16] ASoC: rt5660: " Mark Brown
@ 2023-06-10 13:57 ` Mark Brown
  2023-06-10 13:57 ` [PATCH 13/16] " Mark Brown
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:57 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

The rt5663 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt5663.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/rt5663.c b/sound/soc/codecs/rt5663.c
index f73751dbde30..ee0820a43df0 100644
--- a/sound/soc/codecs/rt5663.c
+++ b/sound/soc/codecs/rt5663.c
@@ -3268,7 +3268,7 @@ static const struct regmap_config rt5663_v2_regmap = {
 	.max_register = 0x07fa,
 	.volatile_reg = rt5663_v2_volatile_register,
 	.readable_reg = rt5663_v2_readable_register,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt5663_v2_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt5663_v2_reg),
 };
@@ -3281,7 +3281,7 @@ static const struct regmap_config rt5663_regmap = {
 	.max_register = 0x03f3,
 	.volatile_reg = rt5663_volatile_register,
 	.readable_reg = rt5663_readable_register,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt5663_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt5663_reg),
 };

-- 
2.30.2


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

* [PATCH 13/16] ASoC: rt5665: Use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
                   ` (11 preceding siblings ...)
  2023-06-10 13:57 ` [PATCH 12/16] ASoC: rt5665: " Mark Brown
@ 2023-06-10 13:57 ` Mark Brown
  2023-06-10 13:58 ` [PATCH 14/16] ASoC: rt5668: " Mark Brown
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:57 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

The rt5665 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt5665.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt5665.c b/sound/soc/codecs/rt5665.c
index 17afaef85c77..8301452058fd 100644
--- a/sound/soc/codecs/rt5665.c
+++ b/sound/soc/codecs/rt5665.c
@@ -4626,7 +4626,7 @@ static const struct regmap_config rt5665_regmap = {
 	.max_register = 0x0400,
 	.volatile_reg = rt5665_volatile_register,
 	.readable_reg = rt5665_readable_register,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt5665_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt5665_reg),
 	.use_single_read = true,

-- 
2.30.2


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

* [PATCH 14/16] ASoC: rt5668: Use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
                   ` (12 preceding siblings ...)
  2023-06-10 13:57 ` [PATCH 13/16] " Mark Brown
@ 2023-06-10 13:58 ` Mark Brown
  2023-06-10 13:58 ` [PATCH 15/16] ASoC: rt5670: " Mark Brown
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:58 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

The rt5668 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt5668.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt5668.c b/sound/soc/codecs/rt5668.c
index ecf3b0527dbe..e2025c9f76a6 100644
--- a/sound/soc/codecs/rt5668.c
+++ b/sound/soc/codecs/rt5668.c
@@ -2370,7 +2370,7 @@ static const struct regmap_config rt5668_regmap = {
 	.max_register = RT5668_I2C_MODE,
 	.volatile_reg = rt5668_volatile_register,
 	.readable_reg = rt5668_readable_register,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt5668_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt5668_reg),
 	.use_single_read = true,

-- 
2.30.2


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

* [PATCH 15/16] ASoC: rt5670: Use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
                   ` (13 preceding siblings ...)
  2023-06-10 13:58 ` [PATCH 14/16] ASoC: rt5668: " Mark Brown
@ 2023-06-10 13:58 ` Mark Brown
  2023-06-10 13:58 ` [PATCH 16/16] ASoC: rt5682: " Mark Brown
  2023-06-15 12:53 ` [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use " Mark Brown
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:58 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

The rt5670 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt5670.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt5670.c b/sound/soc/codecs/rt5670.c
index a230f441559a..ae0cfc857c57 100644
--- a/sound/soc/codecs/rt5670.c
+++ b/sound/soc/codecs/rt5670.c
@@ -2863,7 +2863,7 @@ static const struct regmap_config rt5670_regmap = {
 					       RT5670_PR_SPACING),
 	.volatile_reg = rt5670_volatile_register,
 	.readable_reg = rt5670_readable_register,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt5670_reg,
 	.num_reg_defaults = ARRAY_SIZE(rt5670_reg),
 	.ranges = rt5670_ranges,

-- 
2.30.2


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

* [PATCH 16/16] ASoC: rt5682: Use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
                   ` (14 preceding siblings ...)
  2023-06-10 13:58 ` [PATCH 15/16] ASoC: rt5670: " Mark Brown
@ 2023-06-10 13:58 ` Mark Brown
  2023-06-15 12:53 ` [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use " Mark Brown
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-10 13:58 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood; +Cc: alsa-devel, Mark Brown

The rt5682 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt5682-i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt5682-i2c.c b/sound/soc/codecs/rt5682-i2c.c
index 5bc46b041786..00ee5019bcfc 100644
--- a/sound/soc/codecs/rt5682-i2c.c
+++ b/sound/soc/codecs/rt5682-i2c.c
@@ -47,7 +47,7 @@ static const struct regmap_config rt5682_regmap = {
 	.max_register = RT5682_I2C_MODE,
 	.volatile_reg = rt5682_volatile_register,
 	.readable_reg = rt5682_readable_register,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = rt5682_reg,
 	.num_reg_defaults = RT5682_REG_NUM,
 	.use_single_read = true,

-- 
2.30.2


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

* Re: [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache
  2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
                   ` (15 preceding siblings ...)
  2023-06-10 13:58 ` [PATCH 16/16] ASoC: rt5682: " Mark Brown
@ 2023-06-15 12:53 ` Mark Brown
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-06-15 12:53 UTC (permalink / raw)
  To: Oder Chiou, Liam Girdwood, Mark Brown; +Cc: alsa-devel

On Sat, 10 Jun 2023 14:57:46 +0100, Mark Brown wrote:
> Many of the Realtek I2C/SPI devices only support single register read
> and write operations so don't benefit from using the rbtree cache
> instead of the more modern maple tree cache, convert them to maple tree.
> 
> 

Applied to

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

Thanks!

[01/16] ASoC: rt1011: Use maple tree register cache
        (no commit info)
[02/16] ASoC: rt1019: Use maple tree register cache
        (no commit info)
[03/16] ASoC: rt1305: Use maple tree register cache
        (no commit info)
[04/16] ASoC: rt1308: Use maple tree register cache
        commit: 4f69e29ace9dce5f8226bfc99b77b8497d3d3d79
[05/16] ASoC: rt5514: Use maple tree register cache
        (no commit info)
[06/16] ASoC: rt5616: Use maple tree register cache
        (no commit info)
[07/16] ASoC: rt5631: Use maple tree register cache
        (no commit info)
[08/16] ASoC: rt5640: Use maple tree register cache
        (no commit info)
[09/16] ASoC: rt5645: Use maple tree register cache
        (no commit info)
[10/16] ASoC: rt5651: Use maple tree register cache
        (no commit info)
[11/16] ASoC: rt5660: Use maple tree register cache
        (no commit info)
[12/16] ASoC: rt5665: Use maple tree register cache
        (no commit info)
[13/16] ASoC: rt5665: Use maple tree register cache
        (no commit info)
[14/16] ASoC: rt5668: Use maple tree register cache
        (no commit info)
[15/16] ASoC: rt5670: Use maple tree register cache
        (no commit info)
[16/16] ASoC: rt5682: Use maple tree register cache
        (no commit info)

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] 18+ messages in thread

end of thread, other threads:[~2023-06-15 12:54 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-10 13:57 [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use maple tree register cache Mark Brown
2023-06-10 13:57 ` [PATCH 01/16] ASoC: rt1011: Use " Mark Brown
2023-06-10 13:57 ` [PATCH 02/16] ASoC: rt1019: " Mark Brown
2023-06-10 13:57 ` [PATCH 03/16] ASoC: rt1305: " Mark Brown
2023-06-10 13:57 ` [PATCH 04/16] ASoC: rt1308: " Mark Brown
2023-06-10 13:57 ` [PATCH 05/16] ASoC: rt5514: " Mark Brown
2023-06-10 13:57 ` [PATCH 06/16] ASoC: rt5616: " Mark Brown
2023-06-10 13:57 ` [PATCH 07/16] ASoC: rt5631: " Mark Brown
2023-06-10 13:57 ` [PATCH 08/16] ASoC: rt5640: " Mark Brown
2023-06-10 13:57 ` [PATCH 09/16] ASoC: rt5645: " Mark Brown
2023-06-10 13:57 ` [PATCH 10/16] ASoC: rt5651: " Mark Brown
2023-06-10 13:57 ` [PATCH 11/16] ASoC: rt5660: " Mark Brown
2023-06-10 13:57 ` [PATCH 12/16] ASoC: rt5665: " Mark Brown
2023-06-10 13:57 ` [PATCH 13/16] " Mark Brown
2023-06-10 13:58 ` [PATCH 14/16] ASoC: rt5668: " Mark Brown
2023-06-10 13:58 ` [PATCH 15/16] ASoC: rt5670: " Mark Brown
2023-06-10 13:58 ` [PATCH 16/16] ASoC: rt5682: " Mark Brown
2023-06-15 12:53 ` [PATCH 00/16] ASoC: Convert Realtek I2C drivers to use " Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.