Re: [PATCH] regulator: tps6286x-regulator: Enable REGCACHE_FLAT

From: Mark Brown
Date: Mon Apr 29 2024 - 22:09:40 EST


On Tue, Apr 30, 2024 at 09:00:19AM +0800, Jisheng Zhang wrote:

> Enable regmap cache to reduce i2c transactions and corresponding
> interrupts if regulator is accessed frequently. Since the register map
> is small, we use a FLAT regmap cache.

There are a number of disadvantages to the flat cache, especially the
lack of sparseness, so it is generally better to use the maple cache
unless there's a specific need for the flat cache (usually the fact that
it doesn't allocate).

Attachment: signature.asc
Description: PGP signature