mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 00:24:12 +00:00
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>
This commit is contained in:
parent
d0501dc7fc
commit
00b194871c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user