From: Subhajit Ghosh <subhajit.ghosh@tweaklogic.com>
To: Chu Guangqing <chuguangqing@inspur.com>,
lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org,
dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org,
javier.carrasco.cruz@gmail.com
Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/4] iio: light: apds9306: convert to use maple tree register cache
Date: Mon, 27 Oct 2025 23:36:32 +1030 [thread overview]
Message-ID: <301aff96-5565-47cf-b519-27234ea53ea8@tweaklogic.com> (raw)
In-Reply-To: <20251024073823.35122-4-chuguangqing@inspur.com>
On 24/10/25 18:08, Chu Guangqing 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: Chu Guangqing <chuguangqing@inspur.com>
> ---
> drivers/iio/light/apds9306.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/light/apds9306.c b/drivers/iio/light/apds9306.c
> index 389125675caa..7e68cca0edfa 100644
> --- a/drivers/iio/light/apds9306.c
> +++ b/drivers/iio/light/apds9306.c
> @@ -350,7 +350,7 @@ static const struct regmap_config apds9306_regmap = {
> .volatile_table = &apds9306_volatile_table,
> .precious_table = &apds9306_precious_table,
> .max_register = APDS9306_ALS_THRES_VAR_REG,
> - .cache_type = REGCACHE_RBTREE,
> + .cache_type = REGCACHE_MAPLE,
> };
>
> static const struct reg_field apds9306_rf_sw_reset =
Looks good. I will test it on a real hardware soon. Thank you.
Jonathan will know more about regmap internal implementations.
Acked-by: Subhajit Ghosh <subhajit.ghosh@tweaklogic.com>
Regards,
Subhajit Ghosh
next prev parent reply other threads:[~2025-10-27 13:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-24 7:38 [PATCH 0/4] iio: convert to use maple tree register cache Chu Guangqing
2025-10-24 7:38 ` [PATCH 1/4] iio: adc: ade9000: " Chu Guangqing
2025-10-24 7:38 ` [PATCH 2/4] iio: light: veml3235: " Chu Guangqing
2025-10-24 7:38 ` [PATCH 3/4] iio: light: apds9306: " Chu Guangqing
2025-10-27 13:06 ` Subhajit Ghosh [this message]
2025-10-24 7:38 ` [PATCH 4/4] iio: light: apds9960: " Chu Guangqing
2025-10-24 8:47 ` Andy Shevchenko
[not found] ` <68fc4591.1.gk94qBPVZajhk94q@inspur.com>
2025-10-27 8:30 ` Andy Shevchenko
2025-10-27 13:38 ` Jonathan Cameron
2025-10-28 8:10 ` Andy Shevchenko
2025-11-02 12:11 ` 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=301aff96-5565-47cf-b519-27234ea53ea8@tweaklogic.com \
--to=subhajit.ghosh@tweaklogic.com \
--cc=Michael.Hennerich@analog.com \
--cc=andy@kernel.org \
--cc=chuguangqing@inspur.com \
--cc=dlechner@baylibre.com \
--cc=javier.carrasco.cruz@gmail.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.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