* [PATCH 0/2] regulator: Convert Linear Technologies driver to maple tree cache
@ 2023-06-10 13:59 Mark Brown
2023-06-10 13:59 ` [PATCH 1/2] regulator: ltc3589: Use maple tree register cache Mark Brown
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Mark Brown @ 2023-06-10 13:59 UTC (permalink / raw)
To: Liam Girdwood; +Cc: linux-kernel, Mark Brown
There are a couple of Linear Technologies devices which can only do
single register reads and writes so don't benefit from using the rbtree
register cache rather than the more modern maple tree cache, update them
to use maple tree.
Signed-off-by: Mark Brown <broonie@kernel.org>
---
Mark Brown (2):
regulator: ltc3589: Use maple tree register cache
regulator: ltc3676: Use maple tree register cache
drivers/regulator/ltc3589.c | 2 +-
drivers/regulator/ltc3676.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
base-commit: 9561de3a55bed6bdd44a12820ba81ec416e705a7
change-id: 20230609-regulator-ltc-maple-f7715f2b8686
Best regards,
--
Mark Brown <broonie@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 1/2] regulator: ltc3589: Use maple tree register cache
2023-06-10 13:59 [PATCH 0/2] regulator: Convert Linear Technologies driver to maple tree cache Mark Brown
@ 2023-06-10 13:59 ` Mark Brown
2023-06-10 13:59 ` [PATCH 2/2] regulator: ltc3676: " Mark Brown
2023-06-19 21:36 ` [PATCH 0/2] regulator: Convert Linear Technologies driver to maple tree cache Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2023-06-10 13:59 UTC (permalink / raw)
To: Liam Girdwood; +Cc: linux-kernel, Mark Brown
The ltc3589 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.
Signed-off-by: Mark Brown <broonie@kernel.org>
---
drivers/regulator/ltc3589.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/ltc3589.c b/drivers/regulator/ltc3589.c
index 359b534d8c70..06cfc165ab5f 100644
--- a/drivers/regulator/ltc3589.c
+++ b/drivers/regulator/ltc3589.c
@@ -348,7 +348,7 @@ static const struct regmap_config ltc3589_regmap_config = {
.num_reg_defaults = ARRAY_SIZE(ltc3589_reg_defaults),
.use_single_read = true,
.use_single_write = true,
- .cache_type = REGCACHE_RBTREE,
+ .cache_type = REGCACHE_MAPLE,
};
static irqreturn_t ltc3589_isr(int irq, void *dev_id)
--
2.30.2
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 2/2] regulator: ltc3676: Use maple tree register cache
2023-06-10 13:59 [PATCH 0/2] regulator: Convert Linear Technologies driver to maple tree cache Mark Brown
2023-06-10 13:59 ` [PATCH 1/2] regulator: ltc3589: Use maple tree register cache Mark Brown
@ 2023-06-10 13:59 ` Mark Brown
2023-06-19 21:36 ` [PATCH 0/2] regulator: Convert Linear Technologies driver to maple tree cache Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2023-06-10 13:59 UTC (permalink / raw)
To: Liam Girdwood; +Cc: linux-kernel, Mark Brown
The ltc3676 can only support single register read and write operations
so does not benefit from block writes. This means it gets no benefit from
using the rbtree register cache over the maple tree register cache so
convert it to use maple trees instead, it is more modern.
Signed-off-by: Mark Brown <broonie@kernel.org>
---
drivers/regulator/ltc3676.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/ltc3676.c b/drivers/regulator/ltc3676.c
index a28e6c3460f1..fa3da8134e55 100644
--- a/drivers/regulator/ltc3676.c
+++ b/drivers/regulator/ltc3676.c
@@ -261,7 +261,7 @@ static const struct regmap_config ltc3676_regmap_config = {
.max_register = LTC3676_CLIRQ,
.use_single_read = true,
.use_single_write = true,
- .cache_type = REGCACHE_RBTREE,
+ .cache_type = REGCACHE_MAPLE,
};
static irqreturn_t ltc3676_isr(int irq, void *dev_id)
--
2.30.2
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH 0/2] regulator: Convert Linear Technologies driver to maple tree cache
2023-06-10 13:59 [PATCH 0/2] regulator: Convert Linear Technologies driver to maple tree cache Mark Brown
2023-06-10 13:59 ` [PATCH 1/2] regulator: ltc3589: Use maple tree register cache Mark Brown
2023-06-10 13:59 ` [PATCH 2/2] regulator: ltc3676: " Mark Brown
@ 2023-06-19 21:36 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2023-06-19 21:36 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown; +Cc: linux-kernel
On Sat, 10 Jun 2023 14:59:52 +0100, Mark Brown wrote:
> There are a couple of Linear Technologies devices which can only do
> single register reads and writes so don't benefit from using the rbtree
> register cache rather than the more modern maple tree cache, update them
> to use maple tree.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
Thanks!
[1/2] regulator: ltc3589: Use maple tree register cache
commit: 29890a15865deaf7f446119bcb5617b0cc76be03
[2/2] regulator: ltc3676: Use maple tree register cache
commit: ce44a03db73f7ce7cca152e07bd9cbfc3c10a0ba
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-06-19 21:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-10 13:59 [PATCH 0/2] regulator: Convert Linear Technologies driver to maple tree cache Mark Brown
2023-06-10 13:59 ` [PATCH 1/2] regulator: ltc3589: Use maple tree register cache Mark Brown
2023-06-10 13:59 ` [PATCH 2/2] regulator: ltc3676: " Mark Brown
2023-06-19 21:36 ` [PATCH 0/2] regulator: Convert Linear Technologies driver to maple tree cache Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®