Re: [PATCH RFC] regmap: kunit: add tests for values wider than val_bits

From: Mark Brown

Date: Tue Nov 24 2026 - 08:45:59 EST


On Tue, Nov 24, 2026 at 07:29:34AM +0000, Raffaele Tranfaglia wrote:

> > It means we can't enable this test cases without addressing the underneath
> > implementation(s) of the regmap. I think the proper solution is to cut upper
> > bits on the regmap level, so the cache and HW will see it as expected.

> Mark, would you be ok with masking in the core? I would mask val at the
> start of _regmap_write(), before the cache is updated, so that the cache
> and the bus see the same value, and document it for regmap_write().

Yes.

Attachment: signature.asc
Description: PGP signature