All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@kernel.org>
Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
	Mark Brown <broonie@kernel.org>
Subject: [PATCH 5/5] clk: si570: Convert to use maple tree register cache
Date: Fri, 29 Sep 2023 14:22:03 +0200	[thread overview]
Message-ID: <20230929-clk-maple-si-v1-5-e26cfcaf27bd@kernel.org> (raw)
In-Reply-To: <20230929-clk-maple-si-v1-0-e26cfcaf27bd@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.

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


  parent reply	other threads:[~2023-09-29 12:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Mark Brown [this message]
2023-10-10  3:29   ` [PATCH 5/5] clk: si570: " Stephen Boyd

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=20230929-clk-maple-si-v1-5-e26cfcaf27bd@kernel.org \
    --to=broonie@kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=sboyd@kernel.org \
    /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.