The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Matti Vaittinen <mazziesaccount@gmail.com>
To: Bo Liu <liubo03@inspur.com>, dan@dlrobertson.com, jic23@kernel.org
Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/4] iio: accel: kx022a: convert to use maple tree register cache
Date: Fri, 14 Feb 2025 08:36:12 +0200	[thread overview]
Message-ID: <af91db5d-b115-4577-83b4-0394b60895c3@gmail.com> (raw)
In-Reply-To: <20250212075223.4164-5-liubo03@inspur.com>

On 12/02/2025 09:52, 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>

Acked-by: Matti Vaittinen <mazziesaccount@gmail.com>

> ---
>   drivers/iio/accel/kionix-kx022a.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/iio/accel/kionix-kx022a.c b/drivers/iio/accel/kionix-kx022a.c
> index 5aeb3b951ac5..3a56ab00791a 100644
> --- a/drivers/iio/accel/kionix-kx022a.c
> +++ b/drivers/iio/accel/kionix-kx022a.c
> @@ -149,7 +149,7 @@ static const struct regmap_config kx022a_regmap_config = {
>   	.rd_noinc_table = &kx022a_nir_regs,
>   	.precious_table = &kx022a_precious_regs,
>   	.max_register = KX022A_MAX_REGISTER,
> -	.cache_type = REGCACHE_RBTREE,
> +	.cache_type = REGCACHE_MAPLE,
>   };
>   
>   /* Regmap configs kx132 */
> @@ -260,7 +260,7 @@ static const struct regmap_config kx132_regmap_config = {
>   	.rd_noinc_table = &kx132_nir_regs,
>   	.precious_table = &kx132_precious_regs,
>   	.max_register = KX132_MAX_REGISTER,
> -	.cache_type = REGCACHE_RBTREE,
> +	.cache_type = REGCACHE_MAPLE,
>   };
>   
>   struct kx022a_data {


  reply	other threads:[~2025-02-14  6:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-12  7:52 [PATCH 0/4] iio: accel: convert to use maple tree register cache Bo Liu
2025-02-12  7:52 ` [PATCH 1/4] iio: accel: msa311: " Bo Liu
2025-02-12  7:52 ` [PATCH 2/4] iio: accel: bma400: " Bo Liu
2025-02-12  7:52 ` [PATCH 3/4] iio: accel: bmi088: " Bo Liu
2025-02-12  7:52 ` [PATCH 4/4] iio: accel: kx022a: " Bo Liu
2025-02-14  6:36   ` Matti Vaittinen [this message]
2025-02-16 16:38 ` [PATCH 0/4] iio: accel: " Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=af91db5d-b115-4577-83b4-0394b60895c3@gmail.com \
    --to=mazziesaccount@gmail.com \
    --cc=dan@dlrobertson.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liubo03@inspur.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox