* [PATCH] net: dsa: ar9331: Use maple tree register cache
@ 2023-07-12 23:45 Mark Brown
2023-07-14 7:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2023-07-12 23:45 UTC (permalink / raw)
To: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni
Cc: netdev, linux-kernel, Mark Brown
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(-)
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 = {
---
base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
change-id: 20230708-net-ar9331-regmap-maple-949f614c2599
Best regards,
--
Mark Brown <broonie@kernel.org>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: dsa: ar9331: Use maple tree register cache
2023-07-12 23:45 [PATCH] net: dsa: ar9331: Use maple tree register cache Mark Brown
@ 2023-07-14 7:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-07-14 7:50 UTC (permalink / raw)
To: Mark Brown
Cc: andrew, f.fainelli, olteanv, davem, edumazet, kuba, pabeni,
netdev, linux-kernel
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-14 7:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-12 23:45 [PATCH] net: dsa: ar9331: Use maple tree register cache Mark Brown
2023-07-14 7:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).