mirror of
https://github.com/torvalds/linux.git
synced 2026-10-28 17:55:02 +01:00
gpio: nct6694: Mark the GPIO controller as sleeping
The GPIO callbacks take a mutex and issue USB transfers, so this GPIO
chip must not be used in atomic context. Change the can_sleep switch in
struct gpio_chip to true.
Fixes: 611a995e8a ("gpio: Add Nuvoton NCT6694 GPIO support")
Signed-off-by: Ming Yu <a0282524688@gmail.com>
Link: https://patch.msgid.link/20261007092102.3768818-2-a0282524688@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
This commit is contained in:
parent
24a19b953e
commit
fcbc48dc65
|
|
@ -444,7 +444,7 @@ static int nct6694_gpio_probe(struct platform_device *pdev)
|
|||
data->gpio.set_config = nct6694_set_config;
|
||||
data->gpio.init_valid_mask = nct6694_init_valid_mask;
|
||||
data->gpio.base = -1;
|
||||
data->gpio.can_sleep = false;
|
||||
data->gpio.can_sleep = true;
|
||||
data->gpio.owner = THIS_MODULE;
|
||||
data->gpio.ngpio = NCT6694_NR_GPIO;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user