Skip to content

Commit a073671

Browse files
andy-shevgregkh
authored andcommitted
gpio: pca953x: disable regmap locking for automatic address incrementing
commit ec3decd upstream. 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7924e77 commit a073671

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpio/gpio-pca953x.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ static const struct regmap_config pca953x_ai_i2c_regmap = {
399399
.writeable_reg = pca953x_writeable_register,
400400
.volatile_reg = pca953x_volatile_register,
401401

402+
.disable_locking = true,
402403
.cache_type = REGCACHE_RBTREE,
403404
.max_register = 0x7f,
404405
};

0 commit comments

Comments
 (0)