Skip to content

Commit aa58a21

Browse files
committed
gpio: pca953x: disable regmap locking
This driver uses its own locking but regmap silently uses a mutex for all operations too. Add the option to disable locking to the regmap config struct. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 96d7c7b commit aa58a21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpio/gpio-pca953x.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ static const struct regmap_config pca953x_i2c_regmap = {
307307
.writeable_reg = pca953x_writeable_register,
308308
.volatile_reg = pca953x_volatile_register,
309309

310+
.disable_locking = true,
310311
.cache_type = REGCACHE_RBTREE,
311312
/* REVISIT: should be 0x7f but some 24 bit chips use REG_ADDR_AI */
312313
.max_register = 0xff,

0 commit comments

Comments
 (0)