[openwrt/openwrt] ramips: aw9523: add can_sleep flag for GPIO chip
LEDE Commits
lede-commits at lists.infradead.org
Tue Dec 28 18:43:15 PST 2021
blocktrron pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/00b194871cd82dfbaf678626e49816ab3a51ece8
commit 00b194871cd82dfbaf678626e49816ab3a51ece8
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Wed Dec 29 03:39:44 2021 +0100
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 <mail at david-bauer.net>
---
target/linux/ramips/files/drivers/pinctrl/pinctrl-aw9523.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
More information about the lede-commits
mailing list