Skip to content

Commit 5285b5e

Browse files
mkrlelinusw
authored andcommitted
pinctrl: aw9523: fix can_sleep flag for GPIO chip
The GPIO expander is connected via I2C, thus the can_sleep flag has to be set to true. This fixes spurious "scheduling while atomic" bugs in the kernel ringbuffer. Signed-off-by: David Bauer <[email protected]> Signed-off-by: Milan Krstic <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 8ff4fb2 commit 5285b5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pinctrl/pinctrl-aw9523.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ static int aw9523_init_gpiochip(struct aw9523 *awi, unsigned int npins)
784784
gc->set_config = gpiochip_generic_config;
785785
gc->parent = dev;
786786
gc->owner = THIS_MODULE;
787-
gc->can_sleep = false;
787+
gc->can_sleep = true;
788788

789789
return 0;
790790
}

0 commit comments

Comments
 (0)