Skip to content

Commit ec3decd

Browse files
andy-shevbrgl
authored andcommitted
gpio: pca953x: disable regmap locking for automatic address incrementing
It's a repetition of the commit aa58a21 ("gpio: pca953x: disable regmap locking") which states the following: 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. Fixes: bcf41dc ("gpio: pca953x: fix handling of automatic address incrementing") Cc: Uwe Kleine-König <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Uwe Kleine-König <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 0b22c25 commit ec3decd

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
@@ -395,6 +395,7 @@ static const struct regmap_config pca953x_ai_i2c_regmap = {
395395
.writeable_reg = pca953x_writeable_register,
396396
.volatile_reg = pca953x_volatile_register,
397397

398+
.disable_locking = true,
398399
.cache_type = REGCACHE_RBTREE,
399400
.max_register = 0x7f,
400401
};

0 commit comments

Comments
 (0)