Skip to content

Commit 5285b5e

Browse files
mkrleLinus Walleij
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 <mail@david-bauer.net> Signed-off-by: Milan Krstic <milan.krstic@gmail.com> Link: https://lore.kernel.org/20250703143039.5809-1-milan.krstic@gmail.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 8ff4fb2 commit 5285b5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)