From: David Bauer Date: Wed, 29 Dec 2021 02:39:44 +0000 (+0100) Subject: ramips: aw9523: add can_sleep flag for GPIO chip X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=00b194871cd82dfbaf678626e49816ab3a51ece8;p=openwrt%2Fstaging%2Fjogo.git ramips: aw9523: add 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 should fix spurious "scheduling while atomic" bugs in the kernel ringbuffer. Signed-off-by: David Bauer --- diff --git a/target/linux/ramips/files/drivers/pinctrl/pinctrl-aw9523.c b/target/linux/ramips/files/drivers/pinctrl/pinctrl-aw9523.c index 182e11cdc6..4e75c9bf07 100644 --- a/target/linux/ramips/files/drivers/pinctrl/pinctrl-aw9523.c +++ b/target/linux/ramips/files/drivers/pinctrl/pinctrl-aw9523.c @@ -822,7 +822,7 @@ static int aw9523_init_gpiochip(struct aw9523 *awi, unsigned int npins) gpiochip->parent = dev; gpiochip->of_node = dev->of_node; gpiochip->owner = THIS_MODULE; - gpiochip->can_sleep = false; + gpiochip->can_sleep = true; return 0; }