Re: [PATCH v2 3/3] regmap: kunit: add tests for values wider than val_bits

From: Andy Shevchenko

Date: Wed Nov 25 2026 - 08:42:30 EST


On Wed, Nov 25, 2026 at 08:09:32AM +0000, Raffaele Tranfaglia via B4 Relay wrote:
>
> Add two test cases writing 0xffffff0f with regmap_write() to a regmap
> with val_bits = 16, and check that only the low 16 bits reach the bus
> and can be read back:
>
> - write_wider_than_val_bits uses the RAM regmap, a bus that only
> provides reg_write()/reg_read();
> - raw_write_wider_than_val_bits uses the raw RAM regmap, which goes
> through the value formatters.

If I haven't given a tag earlier
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
as test cases are always warmly welcome!

--
With Best Regards,
Andy Shevchenko