Skip to content

Commit 2ce987d

Browse files
William Breathitt GrayBartosz Golaszewski
authored andcommitted
gpio: 104-idi-48: Enable use_raw_spinlock for idi48_regmap_config
The idi48 regmap can be used in an interrupt context by regmap-irq. To prevent a deadlock, enable use_raw_spinlock for idi48_regmap_config. Fixes: e28432a ("gpio: 104-idi-48: 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 0140794 commit 2ce987d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpio/gpio-104-idi-48.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ static const struct regmap_config idi48_regmap_config = {
8181
.wr_table = &idi_48_wr_table,
8282
.rd_table = &idi_48_rd_table,
8383
.precious_table = &idi_48_precious_table,
84+
.use_raw_spinlock = true,
8485
};
8586

8687
#define IDI48_NGPIO 48

0 commit comments

Comments
 (0)