Re: [PATCH] regcache: Sort the local copy of an unsorted reg_defaults array
From: Mark Brown
Date: Wed Aug 05 2026 - 10:35:39 EST
On Wed, Aug 05, 2026 at 03:07:43PM +0100, Charles Keepax wrote:
> Keep it at least as a warn, you need something annoying or no one
> will take notice, it is quite likely people will apply debug on
> their driver, much less likely they will apply it to the regmap
> core. I still lean towards not sorting the defaults for people,
> but not so strongly as to object if there is a rough concensus
> forming around doing so.
There's far too many fixes at this point for ASoC alone, and nobody
audited any regmap users outside ASoC AFAIK. We need to just have the
core do the right thing. Though I see there's actually two different
comparison functions for sorting that don't always agree with each other
- I'll post a fix for that later today.
Attachment:
signature.asc
Description: PGP signature