Skip to contentSkip to conversation

tty: serial: sc16is7xx: convert to use maple tree register cache

PATCH In review wangkaiyuan 2 participants 2 messages Mar 18, 2024 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 tty: serial: sc16is7xx: convert to use maple tree register cache

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.

---
 drivers/tty/serial/sc16is7xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/sc16is7xx.c +1 -1
index 929206a9a6e1..410b772cdbb3 100644
@@ -1696,7 +1696,7 @@ static struct regmap_config regcfg = {
 	.reg_bits = 5,
 	.pad_bits = 3,
 	.val_bits = 8,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.volatile_reg = sc16is7xx_regmap_volatile,
 	.precious_reg = sc16is7xx_regmap_precious,
 	.writeable_noinc_reg = sc16is7xx_regmap_noinc,
Signature · 1 line
2.27.0
Reviewed-by on v1 2/2
#1 lore raw
Quoted 3 lines · wangkaiyuan

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.

Okay,

Signature · 2 lines
With Best Regards,
Andy Shevchenko