All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Charles Keepax <ckeepax@opensource.cirrus.com>,
	Richard Fitzgerald <rf@opensource.cirrus.com>,
	Lee Jones <lee@kernel.org>
Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com,
	linux-kernel@vger.kernel.org, Mark Brown <broonie@kernel.org>
Subject: [PATCH 10/11] mfd: wm8997: Update to use maple tree register cache
Date: Thu, 13 Jul 2023 01:49:28 +0100	[thread overview]
Message-ID: <20230713-mfd-cirrus-maple-v1-10-16dacae402a8@kernel.org> (raw)
In-Reply-To: <20230713-mfd-cirrus-maple-v1-0-16dacae402a8@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 wm8997 driver to use the more modern data structure.

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

diff --git a/drivers/mfd/wm8997-tables.c b/drivers/mfd/wm8997-tables.c
index 3476787c485e..288c57b2d21e 100644
--- a/drivers/mfd/wm8997-tables.c
+++ b/drivers/mfd/wm8997-tables.c
@@ -1523,7 +1523,7 @@ const struct regmap_config wm8997_i2c_regmap = {
 	.readable_reg = wm8997_readable_register,
 	.volatile_reg = wm8997_volatile_register,
 
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.reg_defaults = wm8997_reg_default,
 	.num_reg_defaults = ARRAY_SIZE(wm8997_reg_default),
 };

-- 
2.39.2


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

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-13  0:49 [PATCH 00/11] mfd:: Update Cirrus Logic drivers to use maple tree register caches Mark Brown
2023-07-13  0:49 ` [PATCH 01/11] mfd: cs47l15: Update to use maple tree register cache Mark Brown
2023-07-13  0:49 ` [PATCH 02/11] mfd: cs47l24: " Mark Brown
2023-07-13  0:49 ` [PATCH 03/11] mfd: cs47l35: " Mark Brown
2023-07-13  0:49 ` [PATCH 04/11] mfd: cs47l85: " Mark Brown
2023-07-13  0:49 ` [PATCH 05/11] mfd: cs47l90: " Mark Brown
2023-07-13  0:49 ` [PATCH 06/11] mfd: cs47l92: " Mark Brown
2023-07-13  0:49 ` [PATCH 07/11] mfd: wm5102: " Mark Brown
2023-07-13  0:49 ` [PATCH 08/11] mfd: wm5110: " Mark Brown
2023-07-18 15:42   ` Charles Keepax
2023-07-18 17:00     ` Charles Keepax
2023-07-18 17:16       ` Mark Brown
2023-07-13  0:49 ` [PATCH 09/11] mfd: wm8994: " Mark Brown
2023-07-13  0:49 ` Mark Brown [this message]
2023-07-13  0:49 ` [PATCH 11/11] mfd: wm8998: " Mark Brown
2023-07-13 19:18 ` [PATCH 00/11] mfd:: Update Cirrus Logic drivers to use maple tree register caches Lee Jones

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-mfd-cirrus-maple-v1-10-16dacae402a8@kernel.org \
    --to=broonie@kernel.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=ckeepax@opensource.cirrus.com \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@opensource.cirrus.com \
    --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.