]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
net: dsa: ar9331: Use maple tree register cache
authorMark Brown <broonie@kernel.org>
Wed, 12 Jul 2023 23:45:58 +0000 (00:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jul 2023 07:43:20 +0000 (08:43 +0100)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca/ar9331.c

index b2bf78ac485ebdd425571bd1ecc5c82d574a6bb6..72730dcc9ca975f5a91a2932453853ceb036a44c 100644 (file)
@@ -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 = {