Skip to content

Commit

Permalink
net: dsa: ar9331: Use maple tree register cache
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown authored and David S. Miller committed Jul 14, 2023
1 parent f63cfa1 commit 88085b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/dsa/qca/ar9331.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 88085b3

Please sign in to comment.