All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: "Liam Girdwood" <lgirdwood@gmail.com>,
	"James Schulman" <james.schulman@cirrus.com>,
	"David Rhodes" <david.rhodes@cirrus.com>,
	"Richard Fitzgerald" <rf@opensource.cirrus.com>,
	"Martin Povišer" <povik+lin@cutebit.org>
Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org,
	 asahi@lists.linux.dev, Mark Brown <broonie@kernel.org>
Subject: [PATCH 04/48] ASoC: cs35l56: Update to use maple tree register cache
Date: Thu, 13 Jul 2023 01:13:17 +0100	[thread overview]
Message-ID: <20230713-asoc-cirrus-maple-v1-4-a62651831735@kernel.org> (raw)
In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org>

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. In
v6.5 it has also acquired the ability to generate multi-register writes in
sync operations, bringing performance up to parity with the rbtree cache
there.

Update the cs35l56 driver to use the more modern data structure.

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

diff --git a/sound/soc/codecs/cs35l56-shared.c b/sound/soc/codecs/cs35l56-shared.c
index 60da8c75b7b9..d561fbdc12de 100644
--- a/sound/soc/codecs/cs35l56-shared.c
+++ b/sound/soc/codecs/cs35l56-shared.c
@@ -319,7 +319,7 @@ struct regmap_config cs35l56_regmap_i2c = {
 	.volatile_reg = cs35l56_volatile_reg,
 	.readable_reg = cs35l56_readable_reg,
 	.precious_reg = cs35l56_precious_reg,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 EXPORT_SYMBOL_NS_GPL(cs35l56_regmap_i2c, SND_SOC_CS35L56_SHARED);
 
@@ -336,7 +336,7 @@ struct regmap_config cs35l56_regmap_spi = {
 	.volatile_reg = cs35l56_volatile_reg,
 	.readable_reg = cs35l56_readable_reg,
 	.precious_reg = cs35l56_precious_reg,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 EXPORT_SYMBOL_NS_GPL(cs35l56_regmap_spi, SND_SOC_CS35L56_SHARED);
 
@@ -352,7 +352,7 @@ struct regmap_config cs35l56_regmap_sdw = {
 	.volatile_reg = cs35l56_volatile_reg,
 	.readable_reg = cs35l56_readable_reg,
 	.precious_reg = cs35l56_precious_reg,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 EXPORT_SYMBOL_NS_GPL(cs35l56_regmap_sdw, SND_SOC_CS35L56_SHARED);
 

-- 
2.39.2


  parent reply	other threads:[~2023-07-13  0:14 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-13  0:13 [PATCH 00/48] ASoC: cirrus: Use the maple tree register cache Mark Brown
2023-07-13  0:13 ` [PATCH 01/48] ASoC: cs35l36: Update to use " Mark Brown
2023-07-13  0:13 ` [PATCH 02/48] ASoC: cs35l41: " Mark Brown
2023-07-18 12:06   ` Charles Keepax
2023-07-13  0:13 ` [PATCH 03/48] ASoC: cs35l45: " Mark Brown
2023-07-13  0:13 ` Mark Brown [this message]
2023-07-13  0:13 ` [PATCH 05/48] ASoC: cs42l51: " Mark Brown
2023-07-13  0:13 ` [PATCH 06/48] ASoC: cs4265: " Mark Brown
2023-07-13  0:13 ` [PATCH 07/48] ASoC: cs4270: " Mark Brown
2023-07-13  0:13 ` [PATCH 08/48] ASoC: cs42l52: " Mark Brown
2023-07-13  0:13 ` [PATCH 09/48] ASoC: cs42l56: " Mark Brown
2023-07-13  0:13 ` [PATCH 10/48] ASoC: cs42xx8: " Mark Brown
2023-07-13  0:13 ` [PATCH 11/48] ASoC: cs4349: " Mark Brown
2023-07-13  0:13 ` [PATCH 12/48] ASoC: wm2200: " Mark Brown
2023-07-13  0:13 ` [PATCH 13/48] ASoC: wm5100: " Mark Brown
2023-07-13  0:13 ` [PATCH 14/48] ASoC: wm9081: " Mark Brown
2023-07-13  0:13 ` [PATCH 15/48] ASoC: wm9090: " Mark Brown
2023-07-13  0:13 ` [PATCH 16/48] ASoC: wm8510: " Mark Brown
2023-07-13  0:13 ` [PATCH 17/48] ASoC: wm8523: " Mark Brown
2023-07-13  0:13 ` [PATCH 18/48] ASoC: wm8580: " Mark Brown
2023-07-13  0:13 ` [PATCH 19/48] ASoC: wm8711: " Mark Brown
2023-07-13  0:13 ` [PATCH 20/48] ASoC: wm8728: " Mark Brown
2023-07-13  0:13 ` [PATCH 21/48] ASoC: wm8731: " Mark Brown
2023-07-13  0:13 ` [PATCH 22/48] ASoC: wm8737: " Mark Brown
2023-07-13  0:13 ` [PATCH 23/48] ASoC: wm8741: " Mark Brown
2023-07-13  0:13 ` [PATCH 24/48] ASoC: wm8750: " Mark Brown
2023-07-13  0:13 ` [PATCH 25/48] ASoC: wm8753: " Mark Brown
2023-07-13  0:13 ` [PATCH 26/48] ASoC: wm8770: " Mark Brown
2023-07-13  0:13 ` [PATCH 27/48] ASoC: wm8776: " Mark Brown
2023-07-13  0:13 ` [PATCH 28/48] ASoC: wm8804: " Mark Brown
2023-07-13  0:13 ` [PATCH 29/48] ASoC: wm8900: " Mark Brown
2023-07-13  0:13 ` [PATCH 30/48] ASoC: wm8903: " Mark Brown
2023-07-13  0:13 ` [PATCH 31/48] ASoC: wm8904: " Mark Brown
2023-07-13  0:13 ` [PATCH 32/48] ASoC: wm8960: " Mark Brown
2023-07-13  0:13 ` [PATCH 33/48] ASoC: wm8961: " Mark Brown
2023-07-13  0:13 ` [PATCH 34/48] ASoC: wm8962: " Mark Brown
2023-07-13  0:13 ` [PATCH 35/48] ASoC: wm8991: " Mark Brown
2023-07-13  0:13 ` [PATCH 36/48] ASoC: wm8993: " Mark Brown
2023-07-13  0:13 ` [PATCH 37/48] ASoC: wm8995: " Mark Brown
2023-07-13  0:13 ` [PATCH 38/48] ASoC: wm8996: " Mark Brown
2023-07-13  0:13 ` [PATCH 39/48] ASoC: wm8940: " Mark Brown
2023-07-13  0:13 ` [PATCH 40/48] ASoC: wm8955: " Mark Brown
2023-07-13  0:13 ` [PATCH 41/48] ASoC: wm8971: " Mark Brown
2023-07-13  0:13 ` [PATCH 42/48] ASoC: wm8978: " Mark Brown
2023-07-13  0:13 ` [PATCH 43/48] ASoC: wm8983: " Mark Brown
2023-07-13  0:13 ` [PATCH 44/48] ASoC: wm8985: " Mark Brown
2023-07-13  0:13 ` [PATCH 45/48] ASoC: wm8988: " Mark Brown
2023-07-13  0:13 ` [PATCH 46/48] ASoC: wm9705: " Mark Brown
2023-07-13  0:14 ` [PATCH 47/48] ASoC: wm9712: " Mark Brown
2023-07-13  0:14 ` [PATCH 48/48] ASoC: wm9713: " Mark Brown
2023-07-18 12:07 ` [PATCH 00/48] ASoC: cirrus: Use the " Charles Keepax
2023-07-18 23:26 ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230713-asoc-cirrus-maple-v1-4-a62651831735@kernel.org \
    --to=broonie@kernel.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=asahi@lists.linux.dev \
    --cc=david.rhodes@cirrus.com \
    --cc=james.schulman@cirrus.com \
    --cc=lgirdwood@gmail.com \
    --cc=patches@opensource.cirrus.com \
    --cc=povik+lin@cutebit.org \
    --cc=rf@opensource.cirrus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.