Re: [RFC PATCH] regmap: force update_bits() to write to HW when reg is volatile

From: Mark Brown
Date: Fri Apr 28 2023 - 07:35:58 EST


On Fri, Apr 28, 2023 at 08:44:06AM +0300, Matti Vaittinen wrote:
> In many cases the volatile registers are expected to be written to
> regardless of the existing value (because, the value of a volatile
> register can't be trusted to stay the same during RMW cycle). In fact, it
> is questionable if the volatile registers and regmap_update_bits()
> conceptually make sense without device specific map->reg_update_bits.

I think you're looking for regmap_write_bits() here.

Attachment: signature.asc
Description: PGP signature