drm/bridge: tc358767: Convert to use maple tree register cache
authorMark Brown <broonie@kernel.org>
Sat, 30 Sep 2023 23:43:13 +0000 (01:43 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 2 Oct 2023 07:09:18 +0000 (09:09 +0200)
The maple tree register cache is based on a much more modern data structure
than the rbtree cache and makes optimisation choices which are probably
more appropriate for modern systems than those made by the rbtree cache.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20231001-drm-tc358767-maple-v1-1-f759fcc4bd98@kernel.org
drivers/gpu/drm/bridge/tc358767.c

index b45bffab7c817418e1ca707eab4f1005aa86503d..ef2e373606ba327c5eea3bd66abb4296879d1bc0 100644 (file)
@@ -2005,7 +2005,7 @@ static const struct regmap_config tc_regmap_config = {
        .val_bits = 32,
        .reg_stride = 4,
        .max_register = PLL_DBG,
-       .cache_type = REGCACHE_RBTREE,
+       .cache_type = REGCACHE_MAPLE,
        .readable_reg = tc_readable_reg,
        .volatile_table = &tc_volatile_table,
        .writeable_reg = tc_writeable_reg,