Skip to content

Commit 0140794

Browse files
William Breathitt GrayBartosz Golaszewski
authored andcommitted
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: 2f7e845 ("gpio: 104-dio-48e: Migrate to the regmap-irq API") Signed-off-by: William Breathitt Gray <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 09a9639 commit 0140794

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpio/gpio-104-dio-48e.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ static const struct regmap_config dio48e_regmap_config = {
8686
.volatile_table = &dio48e_volatile_table,
8787
.precious_table = &dio48e_precious_table,
8888
.cache_type = REGCACHE_FLAT,
89+
.use_raw_spinlock = true,
8990
};
9091

9192
/* only bit 3 on each respective Port C supports interrupts */

0 commit comments

Comments
 (0)