linux-stable/drivers/base/regmap
Bartosz Golaszewski c9b41fcf27
regmap: allow to disable all locking mechanisms
We have a use case in the at24 EEPROM driver (recently converted to
using regmap instead of raw i2c/smbus calls) where we read from/write
to the regmap in a loop, while protecting the entire loop with
a mutex.

Currently this implicitly makes us use two mutexes - one in the driver
and one in regmap. While browsing the code for similar use cases I
noticed a significant number of places where locking *seems* redundant.

Allow users to completely disable any locking mechanisms in regmap
config.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Mark Brown <broonie@kernel.org>
2017-12-06 15:30:02 +00:00
..
internal.h regmap: Add hardware spinlock support 2017-11-01 10:06:29 +00:00
Kconfig regmap: Updates for v4.15 2017-11-13 09:45:34 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
regcache-flat.c regcache: flat: Require max_registers to be set 2016-03-29 09:51:04 -07:00
regcache-lzo.c regmap: cache: Remove unused 'blksize' variable 2016-11-25 13:01:36 +00:00
regcache-rbtree.c regmap: use rb_entry() 2016-12-19 15:42:26 +00:00
regcache.c regmap: Fix typo in IS_ENABLED() check 2017-06-08 15:43:19 +01:00
regmap-ac97.c
regmap-debugfs.c regmap: debugfs: Add support for dumping write only device registers 2016-08-09 13:43:33 +01:00
regmap-i2c.c regmap-i2c: Use i2c block command only if register value width is 8 bit 2016-06-22 13:50:51 +01:00
regmap-irq.c regmap: irq: add chip option mask_writeonly 2017-06-28 20:11:07 +01:00
regmap-mmio.c Merge remote-tracking branches 'regmap/fix/be', 'regmap/fix/doc' and 'regmap/fix/spmi' into regmap-linus 2016-05-13 10:36:10 +01:00
regmap-spi.c regmap: constify regmap_bus structures 2017-08-14 17:36:29 +01:00
regmap-spmi.c regmap: constify regmap_bus structures 2017-08-14 17:36:29 +01:00
regmap-w1.c regmap: regmap-w1: Fix build troubles 2017-07-17 15:53:00 +01:00
regmap.c regmap: allow to disable all locking mechanisms 2017-12-06 15:30:02 +00:00
trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00