All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bo Liu <liubo03@inspur.com>
To: <lee@kernel.org>, <wens@csie.org>,
	<marek.vasut+renesas@gmail.com>, <support.opensource@diasemi.com>,
	<neil.armstrong@linaro.org>, <ckeepax@opensource.cirrus.com>,
	<rf@opensource.cirrus.com>, <mazziesaccount@gmail.com>,
	<mcoquelin.stm32@gmail.com>, <alexandre.torgue@foss.st.com>
Cc: <linux-kernel@vger.kernel.org>,
	<linux-renesas-soc@vger.kernel.org>,
	<linux-amlogic@lists.infradead.org>,
	<patches@opensource.cirrus.com>,
	<linux-stm32@st-md-mailman.stormreply.com>,
	<linux-arm-kernel@lists.infradead.org>,
	Bo Liu <liubo03@inspur.com>
Subject: [PATCH 05/18] mfd: bcm590xx: convert to use maple tree register cache
Date: Tue, 6 Feb 2024 02:13:01 -0500	[thread overview]
Message-ID: <20240206071314.8721-6-liubo03@inspur.com> (raw)
In-Reply-To: <20240206071314.8721-1-liubo03@inspur.com>

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: Bo Liu <liubo03@inspur.com>
---
 drivers/mfd/bcm590xx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mfd/bcm590xx.c b/drivers/mfd/bcm590xx.c
index 92eede9a5e61..8b56786d85d0 100644
--- a/drivers/mfd/bcm590xx.c
+++ b/drivers/mfd/bcm590xx.c
@@ -27,14 +27,14 @@ static const struct regmap_config bcm590xx_regmap_config_pri = {
 	.reg_bits	= 8,
 	.val_bits	= 8,
 	.max_register	= BCM590XX_MAX_REGISTER_PRI,
-	.cache_type	= REGCACHE_RBTREE,
+	.cache_type	= REGCACHE_MAPLE,
 };
 
 static const struct regmap_config bcm590xx_regmap_config_sec = {
 	.reg_bits	= 8,
 	.val_bits	= 8,
 	.max_register	= BCM590XX_MAX_REGISTER_SEC,
-	.cache_type	= REGCACHE_RBTREE,
+	.cache_type	= REGCACHE_MAPLE,
 };
 
 static int bcm590xx_i2c_probe(struct i2c_client *i2c_pri)
-- 
2.18.2


WARNING: multiple messages have this Message-ID (diff)
From: Bo Liu <liubo03@inspur.com>
To: <lee@kernel.org>, <wens@csie.org>,
	<marek.vasut+renesas@gmail.com>, <support.opensource@diasemi.com>,
	<neil.armstrong@linaro.org>, <ckeepax@opensource.cirrus.com>,
	<rf@opensource.cirrus.com>, <mazziesaccount@gmail.com>,
	<mcoquelin.stm32@gmail.com>, <alexandre.torgue@foss.st.com>
Cc: <linux-kernel@vger.kernel.org>,
	<linux-renesas-soc@vger.kernel.org>,
	<linux-amlogic@lists.infradead.org>,
	<patches@opensource.cirrus.com>,
	<linux-stm32@st-md-mailman.stormreply.com>,
	<linux-arm-kernel@lists.infradead.org>,
	Bo Liu <liubo03@inspur.com>
Subject: [PATCH 05/18] mfd: bcm590xx: convert to use maple tree register cache
Date: Tue, 6 Feb 2024 02:13:01 -0500	[thread overview]
Message-ID: <20240206071314.8721-6-liubo03@inspur.com> (raw)
In-Reply-To: <20240206071314.8721-1-liubo03@inspur.com>

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: Bo Liu <liubo03@inspur.com>
---
 drivers/mfd/bcm590xx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mfd/bcm590xx.c b/drivers/mfd/bcm590xx.c
index 92eede9a5e61..8b56786d85d0 100644
--- a/drivers/mfd/bcm590xx.c
+++ b/drivers/mfd/bcm590xx.c
@@ -27,14 +27,14 @@ static const struct regmap_config bcm590xx_regmap_config_pri = {
 	.reg_bits	= 8,
 	.val_bits	= 8,
 	.max_register	= BCM590XX_MAX_REGISTER_PRI,
-	.cache_type	= REGCACHE_RBTREE,
+	.cache_type	= REGCACHE_MAPLE,
 };
 
 static const struct regmap_config bcm590xx_regmap_config_sec = {
 	.reg_bits	= 8,
 	.val_bits	= 8,
 	.max_register	= BCM590XX_MAX_REGISTER_SEC,
-	.cache_type	= REGCACHE_RBTREE,
+	.cache_type	= REGCACHE_MAPLE,
 };
 
 static int bcm590xx_i2c_probe(struct i2c_client *i2c_pri)
-- 
2.18.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: Bo Liu <liubo03@inspur.com>
To: <lee@kernel.org>, <wens@csie.org>,
	<marek.vasut+renesas@gmail.com>, <support.opensource@diasemi.com>,
	<neil.armstrong@linaro.org>, <ckeepax@opensource.cirrus.com>,
	<rf@opensource.cirrus.com>, <mazziesaccount@gmail.com>,
	<mcoquelin.stm32@gmail.com>, <alexandre.torgue@foss.st.com>
Cc: <linux-kernel@vger.kernel.org>,
	<linux-renesas-soc@vger.kernel.org>,
	<linux-amlogic@lists.infradead.org>,
	<patches@opensource.cirrus.com>,
	<linux-stm32@st-md-mailman.stormreply.com>,
	<linux-arm-kernel@lists.infradead.org>,
	Bo Liu <liubo03@inspur.com>
Subject: [PATCH 05/18] mfd: bcm590xx: convert to use maple tree register cache
Date: Tue, 6 Feb 2024 02:13:01 -0500	[thread overview]
Message-ID: <20240206071314.8721-6-liubo03@inspur.com> (raw)
In-Reply-To: <20240206071314.8721-1-liubo03@inspur.com>

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: Bo Liu <liubo03@inspur.com>
---
 drivers/mfd/bcm590xx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mfd/bcm590xx.c b/drivers/mfd/bcm590xx.c
index 92eede9a5e61..8b56786d85d0 100644
--- a/drivers/mfd/bcm590xx.c
+++ b/drivers/mfd/bcm590xx.c
@@ -27,14 +27,14 @@ static const struct regmap_config bcm590xx_regmap_config_pri = {
 	.reg_bits	= 8,
 	.val_bits	= 8,
 	.max_register	= BCM590XX_MAX_REGISTER_PRI,
-	.cache_type	= REGCACHE_RBTREE,
+	.cache_type	= REGCACHE_MAPLE,
 };
 
 static const struct regmap_config bcm590xx_regmap_config_sec = {
 	.reg_bits	= 8,
 	.val_bits	= 8,
 	.max_register	= BCM590XX_MAX_REGISTER_SEC,
-	.cache_type	= REGCACHE_RBTREE,
+	.cache_type	= REGCACHE_MAPLE,
 };
 
 static int bcm590xx_i2c_probe(struct i2c_client *i2c_pri)
-- 
2.18.2


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

  parent reply	other threads:[~2024-02-06  7:13 UTC|newest]

Thread overview: 90+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-06  7:12 [PATCH 00/18] mfd: convert to use maple tree register cache Bo Liu
2024-02-06  7:12 ` Bo Liu
2024-02-06  7:12 ` Bo Liu
2024-02-06  7:12 ` [PATCH 01/18] mfd: ac100: " Bo Liu
2024-02-06  7:12   ` Bo Liu
2024-02-06  7:12   ` Bo Liu
2024-02-06  7:12 ` [PATCH 02/18] mfd: as3711: " Bo Liu
2024-02-06  7:12   ` Bo Liu
2024-02-06  7:12   ` Bo Liu
2024-02-06  7:12 ` [PATCH 03/18] mfd: as3722: " Bo Liu
2024-02-06  7:12   ` Bo Liu
2024-02-06  7:12   ` Bo Liu
2024-02-06  7:13 ` [PATCH 04/18] mfd: axp20x: " Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13 ` Bo Liu [this message]
2024-02-06  7:13   ` [PATCH 05/18] mfd: bcm590xx: " Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13 ` [PATCH 06/18] mfd: bd9571mwv: " Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13 ` [PATCH 07/18] mfd: dialog: " Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13 ` [PATCH 08/18] mfd: khadas-mcu: " Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  8:47   ` neil.armstrong
2024-02-06  8:47     ` neil.armstrong
2024-02-06  8:47     ` neil.armstrong
2024-02-06  7:13 ` [PATCH 09/18] mfd: lochnagar-i2c: " Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  9:58   ` Charles Keepax
2024-02-06  9:58     ` Charles Keepax
2024-02-06  9:58     ` Charles Keepax
2024-02-06  7:13 ` [PATCH 10/18] mfd: wolfson: " Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06 10:04   ` Charles Keepax
2024-02-06 10:04     ` Charles Keepax
2024-02-06 10:04     ` Charles Keepax
2024-02-06 10:23     ` Charles Keepax
2024-02-06 10:23       ` Charles Keepax
2024-02-06 10:23       ` Charles Keepax
2024-02-06  7:13 ` [PATCH 11/18] mfd: rohm: " Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-07  7:57   ` Matti Vaittinen
2024-02-07  7:57     ` Matti Vaittinen
2024-02-07  7:57     ` Matti Vaittinen
2024-02-06  7:13 ` [PATCH 12/18] mfd: rk8xx: " Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13 ` [PATCH 13/18] mfd: rn5t618: " Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13 ` [PATCH 14/18] mfd: rsmu_i2c: " Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13 ` [PATCH 15/18] mfd: si476x: " Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13 ` [PATCH 16/18] mfd: stmfx: " Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13 ` [PATCH 17/18] mfd: stpmic1: " Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13 ` [PATCH 18/18] mfd: rc5t583: " Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  7:13   ` Bo Liu
2024-02-06  9:33 ` [PATCH 00/18] mfd: " Geert Uytterhoeven
2024-02-06  9:33   ` Geert Uytterhoeven
2024-02-06  9:33   ` Geert Uytterhoeven
2024-02-06 10:07   ` Mark Brown
2024-02-06 10:07     ` Mark Brown
2024-02-06 10:07     ` Mark Brown
2024-02-06 10:14     ` Geert Uytterhoeven
2024-02-06 10:14       ` Geert Uytterhoeven
2024-02-06 10:14       ` Geert Uytterhoeven
2024-02-06 10:59       ` Mark Brown
2024-02-06 10:59         ` Mark Brown
2024-02-06 10:59         ` Mark Brown
2024-02-08 14:24 ` Lee Jones
2024-02-08 14:24   ` Lee Jones
2024-02-08 14:24   ` Lee Jones
2024-02-08 14:26   ` Lee Jones
2024-02-08 14:26     ` Lee Jones
2024-02-08 14:26     ` 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=20240206071314.8721-6-liubo03@inspur.com \
    --to=liubo03@inspur.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=ckeepax@opensource.cirrus.com \
    --cc=lee@kernel.org \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=marek.vasut+renesas@gmail.com \
    --cc=mazziesaccount@gmail.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=neil.armstrong@linaro.org \
    --cc=patches@opensource.cirrus.com \
    --cc=rf@opensource.cirrus.com \
    --cc=support.opensource@diasemi.com \
    --cc=wens@csie.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.