Re: [RFC PATCH v2 1/3] regmap: Add flat_cache_default_is_zero flag for flat cache
From: Mark Brown
Date: Mon Jan 12 2026 - 16:45:08 EST
On Mon, Jan 12, 2026 at 08:09:33PM +0100, Sander Vanheule wrote:
> On Mon, 2026-01-12 at 09:58 +0530, Sheetal . wrote:
> > 1. Maintenance burden: Drivers must list every readable register
> > regardless of its reset value.
> If you would extend regmap_config to accept a callback for defaults, this burden
> could be reduced to near-zero if it was a simple wrapper for the writeable_regs
> and/or readable_regs callbacks. I.e. "return 0x0 if readable or writable".
That does seem like a good idea.
Attachment:
signature.asc
Description: PGP signature