aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/drivers
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2021-12-29 03:39:44 +0100
committerDavid Bauer <mail@david-bauer.net>2021-12-29 03:43:03 +0100
commit00b194871cd82dfbaf678626e49816ab3a51ece8 (patch)
treeafd29a353ac1501505fca125c33e9bdc70a62243 /target/linux/ramips/files/drivers
parentd0501dc7fc078fb9e91d5365474db9ed8200f9e0 (diff)
downloadupstream-00b194871cd82dfbaf678626e49816ab3a51ece8.tar.gz
upstream-00b194871cd82dfbaf678626e49816ab3a51ece8.tar.bz2
upstream-00b194871cd82dfbaf678626e49816ab3a51ece8.zip
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@david-bauer.net>
Diffstat (limited to 'target/linux/ramips/files/drivers')
-rw-r--r--target/linux/ramips/files/drivers/pinctrl/pinctrl-aw9523.c2
1 files changed, 1 insertions, 1 deletions
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;
}