Re: [PATCH v3 2/2] regmap: Add maple tree based register cache

From: Mark Brown
Date: Mon Apr 03 2023 - 14:40:35 EST


On Mon, Apr 03, 2023 at 02:26:44PM -0400, Liam R. Howlett wrote:

> What you have will work. If you need more optimisations later, then we
> can have another look.

Yeah, what's there tests out OK. In terms of optimisation the baseline
requirement is that we have to be able to pull values out faster than
we'd be able to read them from the device so until we're working with
MMIO devices (which people do use regmap with sometimes but aren't the
common case) we can typically burn a *lot* of CPU cycles and still be
doing just fine. The hot spots are basic read/write of an existing
cached register, then sync and initial load in of cache defaults.

Attachment: signature.asc
Description: PGP signature