Commit 5285b5ed authored by Milan Krstic's avatar Milan Krstic Committed by Linus Walleij
Browse files

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: default avatarDavid Bauer <mail@david-bauer.net>
Signed-off-by: default avatarMilan Krstic <milan.krstic@gmail.com>
Link: https://lore.kernel.org/20250703143039.5809-1-milan.krstic@gmail.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8ff4fb27
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -784,7 +784,7 @@ static int aw9523_init_gpiochip(struct aw9523 *awi, unsigned int npins)
	gc->set_config = gpiochip_generic_config;
	gc->parent = dev;
	gc->owner = THIS_MODULE;
	gc->can_sleep = false;
	gc->can_sleep = true;

	return 0;
}