Re: [PATCH 0/3] ASoC: cs35l41/cs35l45/cs4265: sort the reg_defaults tables

Mark Brown <[email protected]> Wed, 5 Aug 2026 11:38:22 +0100
Newsgroups org.kernel.vger.linux-sound,org.kernel.vger.stable
Message-ID <[email protected]>
On Wed, Aug 05, 2026 at 10:40:46AM +0200, Pierre-Louis Bossart wrote:

> Wow. Would it make sense to have a regmap helper to double-check the
> addresses are indeed in-order in those reg_default tables?
> I am not sure how this requirement can be enforced by just inspection, a
> warning would help detect this sort of issues on more platforms.

We could also sort when we copy the defaults during device init rather
than warning, at the moment we just kmemdup() the defaults array which
we later do binary searches on.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmpzEp4ACgkQJNaLcl1U
h9DXSwf+OxfrcyQ8QMma/J/ZUy0bAz22/Z8l5taFy50o8/prdlymsdzcF5uPqEJz
zkR+mGSOpdGiRWZ1BCbkf6G73RBkvjPxmzRYYblbuNaq53vZOY7T5n7hlxeWObvT
KGaF/5JNdQztTmMdWcIAMu4GDF3grcoNKynuqYPOxErAOSpTiTiGNJO9YB9V/fF4
OEkZbAcY5q9oAXFIMYsU92NC2Q37IdOd800R2qwFWUKUMBsid40sia+ikqpVA0SY
k4fLas1UXXADrvd5RyUVVRv1XmRTrgR/2x0+y5EFTMR9DMouOFi1NOKa658L4Htw
1vTU6X1GGAMnQ52FiISHJav2B8nCQw==
=FWd/
-----END PGP SIGNATURE-----