Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: 104-dio-48e: Enable use_raw_spinlock for dio48e_regmap_config

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>

authored by

William Breathitt Gray and committed by
Bartosz Golaszewski
01407940 09a9639e

+1
+1
drivers/gpio/gpio-104-dio-48e.c
··· 86 86 .volatile_table = &dio48e_volatile_table, 87 87 .precious_table = &dio48e_precious_table, 88 88 .cache_type = REGCACHE_FLAT, 89 + .use_raw_spinlock = true, 89 90 }; 90 91 91 92 /* only bit 3 on each respective Port C supports interrupts */