diff mbox series

net: dsa: ar9331: Use maple tree register cache

Message ID 20230713-net-ar9331-regmap-maple-v1-1-bffed9f09da7@kernel.org (mailing list archive)
State Accepted
Commit 88085b3b83f55eab1be57f4eb0f69446717f23fb
Delegated to: Netdev Maintainers
Headers show
Series net: dsa: ar9331: Use maple tree register cache | expand

Checks

Context Check Description
netdev/series_format warning Single patches do not need cover letters; Target tree name not specified in the subject
netdev/tree_selection success Guessed tree name to be net-next
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 1341 this patch: 1341
netdev/cc_maintainers warning 2 maintainers not CCed: yangyingliang@huawei.com hi@atinb.me
netdev/build_clang success Errors and warnings before: 1364 this patch: 1364
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 1364 this patch: 1364
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Mark Brown July 12, 2023, 11:45 p.m. UTC
We now have a regmap cache which uses a maple tree to store the register
state, this is a more modern data structure and the regmap level code
using it makes a number of assumptions better tuned for modern hardware
than those made by the rbtree cache type that the at9331 driver uses.
Switch the ar9331 driver to use the more modern data structure.

This should have minimal practical impact, it's mainly code
modernisation.

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


---
base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
change-id: 20230708-net-ar9331-regmap-maple-949f614c2599

Best regards,

Comments

patchwork-bot+netdevbpf@kernel.org July 14, 2023, 7:50 a.m. UTC | #1
Hello:

This patch was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Thu, 13 Jul 2023 00:45:58 +0100 you wrote:
> We now have a regmap cache which uses a maple tree to store the register
> state, this is a more modern data structure and the regmap level code
> using it makes a number of assumptions better tuned for modern hardware
> than those made by the rbtree cache type that the at9331 driver uses.
> Switch the ar9331 driver to use the more modern data structure.
> 
> This should have minimal practical impact, it's mainly code
> modernisation.
> 
> [...]

Here is the summary with links:
  - net: dsa: ar9331: Use maple tree register cache
    https://git.kernel.org/netdev/net-next/c/88085b3b83f5

You are awesome, thank you!
diff mbox series

Patch

diff --git a/drivers/net/dsa/qca/ar9331.c b/drivers/net/dsa/qca/ar9331.c
index b2bf78ac485e..72730dcc9ca9 100644
--- a/drivers/net/dsa/qca/ar9331.c
+++ b/drivers/net/dsa/qca/ar9331.c
@@ -1010,7 +1010,7 @@  static const struct regmap_config ar9331_mdio_regmap_config = {
 	.wr_table = &ar9331_register_set,
 	.rd_table = &ar9331_register_set,
 
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 
 static struct regmap_bus ar9331_sw_bus = {