gpio: 104-dio-48e: Enable use_raw_spinlock for dio48e_regmap_config
authorWilliam Breathitt Gray <william.gray@linaro.org>
Mon, 3 Apr 2023 17:53:13 +0000 (13:53 -0400)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 11 Apr 2023 19:08:25 +0000 (21:08 +0200)
The dio48e regmap can be used in an interrupt context by regmap-irq. To
prevent a deadlock, enable use_raw_spinlock for dio48e_regmap_config.

Fixes: 2f7e845f512f ("gpio: 104-dio-48e: Migrate to the regmap-irq API")
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-104-dio-48e.c

index a3846faf3780dcbe7337fe5db085c657eed89fe0..11c48130bb8f16a88e1bee7bc4659475f92e1dbe 100644 (file)
@@ -86,6 +86,7 @@ static const struct regmap_config dio48e_regmap_config = {
        .volatile_table = &dio48e_volatile_table,
        .precious_table = &dio48e_precious_table,
        .cache_type = REGCACHE_FLAT,
+       .use_raw_spinlock = true,
 };
 
 /* only bit 3 on each respective Port C supports interrupts */