drm/bridge: dpc3433: Convert to use maple tree register cache
authorMark Brown <broonie@kernel.org>
Sat, 30 Sep 2023 23:42:24 +0000 (01:42 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 2 Oct 2023 07:09:17 +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-dlpc3433-maple-v1-1-7d71170c010b@kernel.org
drivers/gpu/drm/bridge/ti-dlpc3433.c

index b65632e..ca33481 100644 (file)
@@ -100,7 +100,7 @@ static struct regmap_config dlpc_regmap_config = {
        .max_register           = WR_DSI_PORT_EN,
        .writeable_noinc_reg    = dlpc_writeable_noinc_reg,
        .volatile_table         = &dlpc_volatile_table,
-       .cache_type             = REGCACHE_RBTREE,
+       .cache_type             = REGCACHE_MAPLE,
        .name                   = "dlpc3433",
 };