Thread (50 messages) flat view 50 messages, 5 authors, 2021-11-21

Re: regmap: allow to define reg_update_bits for no bus configuration

From: Mark Brown <broonie@kernel.org>
Date: 2021-11-17 22:16:02
Also in: lkml

On Wed, Nov 17, 2021 at 10:04:33PM +0100, Ansuel Smith wrote:
Some device requires a special handling for reg_update_bits and can't use
the normal regmap read write logic. An example is when locking is
handled by the device and rmw operations requires to do atomic operations.
Allow to declare a dedicated function in regmap_config for
reg_update_bits in no bus configuration.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Link: https://lore.kernel.org/r/20211104150040.1260-1-ansuelsmth@gmail.com (local)
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 drivers/base/regmap/regmap.c | 1 +
 include/linux/regmap.h       | 7 +++++++
 2 files changed, 8 insertions(+)
I've applied this already?  If it's needed by something in another tree
let me know and I'll make a signed tag for it.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help