OSDN Git Service

regmap: allow to define reg_update_bits for no bus configuration
authorAnsuel Smith <ansuelsmth@gmail.com>
Thu, 4 Nov 2021 15:00:40 +0000 (16:00 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 15 Nov 2021 13:27:13 +0000 (13:27 +0000)
commit02d6fdecb9c38de19065f6bed8d5214556fd061d
tree493feadbdd971b83ae417e8428d2ea8d5821bc65
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf
regmap: allow to define reg_update_bits for no bus configuration

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
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c
include/linux/regmap.h