summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/qca/ar9331.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-07-13 00:45:58 +0100
committerDavid S. Miller <davem@davemloft.net>2023-07-14 08:43:20 +0100
commit88085b3b83f55eab1be57f4eb0f69446717f23fb (patch)
treea9a1e6e7b8d9e0c8ed8bf4f2e1c83b5c2769106a /drivers/net/dsa/qca/ar9331.c
parentf63cfa103be9b16c4491f1d58bbef3616fc61a92 (diff)
net: dsa: ar9331: Use maple tree register cache
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>
Diffstat (limited to 'drivers/net/dsa/qca/ar9331.c')
-rw-r--r--drivers/net/dsa/qca/ar9331.c2
1 files changed, 1 insertions, 1 deletions
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 = {