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 1/5] clk: si514: Convert to use maple tree register cache
Date: Fri, 29 Sep 2023 14:21:59 +0200 [thread overview]
Message-ID: <20230929-clk-maple-si-v1-1-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-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
next prev 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 ` Mark Brown [this message]
2023-10-10 3:30 ` [PATCH 1/5] clk: si514: Convert " 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
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-1-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox