pinctrl: aw9523: fix can_sleep flag for GPIO chip
Subsystems (2)
PATCH 1/1 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 <[email protected]>
Signed-off-by Milan Krstic <[email protected]>
--- drivers/pinctrl/pinctrl-aw9523.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinctrl-aw9523.c +1 -1
@@ -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 ; }
Signature · 1 line
2.34.1
Quoted 6 lines · Milan Krstic
The GPIO expander is connected via I2C, thus the
can_sleepflag has to be set to true. This fixes spurious "scheduling while atomic" bugs in the kernel ringbuffer.Signed-off-by David Bauer <[email protected]>Signed-off-by Milan Krstic <[email protected]>
Patch applied.
Yours,
Linus Walleij