From: Bartosz Golaszewski Date: Tue, 7 Apr 2020 15:42:45 +0000 (+0200) Subject: gpio: pca953x: disable regmap locking X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~2017^2~7^2~10 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=aa58a21ae37894d456a2f91a37e9fd71ad4aa27e;p=linux.git 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 Reviewed-by: Geert Uytterhoeven Tested-by: Geert Uytterhoeven Acked-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index 6317510b0dc3..60ae18e4b5f5 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c @@ -307,6 +307,7 @@ static const struct regmap_config pca953x_i2c_regmap = { .writeable_reg = pca953x_writeable_register, .volatile_reg = pca953x_volatile_register, + .disable_locking = true, .cache_type = REGCACHE_RBTREE, /* REVISIT: should be 0x7f but some 24 bit chips use REG_ADDR_AI */ .max_register = 0xff,