diff options
author | 2025-07-03 14:30:39 +0000 | |
---|---|---|
committer | 2025-07-04 10:31:50 +0200 | |
commit | 5285b5ed04ab6ad40f7b654eefbccd6ae8cbf415 (patch) | |
tree | 6129b7226cafeeb9f8ad8478a43291ca51e265f4 | |
parent | pinctrl: amd: Clear GPIO debounce for suspend (diff) | |
download | wireguard-linux-5285b5ed04ab6ad40f7b654eefbccd6ae8cbf415.tar.xz wireguard-linux-5285b5ed04ab6ad40f7b654eefbccd6ae8cbf415.zip |
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>
-rw-r--r-- | drivers/pinctrl/pinctrl-aw9523.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-aw9523.c b/drivers/pinctrl/pinctrl-aw9523.c index 9bf53de20be8..04afb344e9e5 100644 --- a/drivers/pinctrl/pinctrl-aw9523.c +++ b/drivers/pinctrl/pinctrl-aw9523.c @@ -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; } |