* [PATCH] media: i2c: mt9v032: convert to use maple tree register cache
@ 2024-01-17 3:11 Bo Liu
2024-01-17 9:45 ` Laurent Pinchart
0 siblings, 1 reply; 2+ messages in thread
From: Bo Liu @ 2024-01-17 3:11 UTC (permalink / raw)
To: sakari.ailus, laurent.pinchart, mchehab; +Cc: linux-media, linux-kernel, Bo Liu
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: Bo Liu <liubo03@inspur.com>
---
drivers/media/i2c/mt9v032.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/i2c/mt9v032.c b/drivers/media/i2c/mt9v032.c
index 3ca76eeae7ff..6dfbd1c56c22 100644
--- a/drivers/media/i2c/mt9v032.c
+++ b/drivers/media/i2c/mt9v032.c
@@ -988,7 +988,7 @@ static const struct regmap_config mt9v032_regmap_config = {
.reg_bits = 8,
.val_bits = 16,
.max_register = 0xff,
- .cache_type = REGCACHE_RBTREE,
+ .cache_type = REGCACHE_MAPLE,
};
/* -----------------------------------------------------------------------------
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] media: i2c: mt9v032: convert to use maple tree register cache
2024-01-17 3:11 [PATCH] media: i2c: mt9v032: convert to use maple tree register cache Bo Liu
@ 2024-01-17 9:45 ` Laurent Pinchart
0 siblings, 0 replies; 2+ messages in thread
From: Laurent Pinchart @ 2024-01-17 9:45 UTC (permalink / raw)
To: Bo Liu; +Cc: sakari.ailus, mchehab, linux-media, linux-kernel
On Tue, Jan 16, 2024 at 10:11:05PM -0500, Bo Liu wrote:
> 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: Bo Liu <liubo03@inspur.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
> drivers/media/i2c/mt9v032.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/i2c/mt9v032.c b/drivers/media/i2c/mt9v032.c
> index 3ca76eeae7ff..6dfbd1c56c22 100644
> --- a/drivers/media/i2c/mt9v032.c
> +++ b/drivers/media/i2c/mt9v032.c
> @@ -988,7 +988,7 @@ static const struct regmap_config mt9v032_regmap_config = {
> .reg_bits = 8,
> .val_bits = 16,
> .max_register = 0xff,
> - .cache_type = REGCACHE_RBTREE,
> + .cache_type = REGCACHE_MAPLE,
> };
>
> /* -----------------------------------------------------------------------------
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-17 9:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-17 3:11 [PATCH] media: i2c: mt9v032: convert to use maple tree register cache Bo Liu
2024-01-17 9:45 ` Laurent Pinchart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox