Skip to content

Commit b5f8aa8

Browse files
author
Bartosz Golaszewski
committed
gpio: wcd934x: mark the GPIO controller as sleeping
The slimbus regmap passed to the GPIO driver down from MFD does not use fast_io. This means a mutex is used for locking and thus this GPIO chip must not be used in atomic context. Change the can_sleep switch in struct gpio_chip to true. Fixes: 59c3246 ("gpio: wcd934x: Add support to wcd934x gpio controller") Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent 434689e commit b5f8aa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-wcd934x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static int wcd_gpio_probe(struct platform_device *pdev)
103103
chip->base = -1;
104104
chip->ngpio = WCD934X_NPINS;
105105
chip->label = dev_name(dev);
106-
chip->can_sleep = false;
106+
chip->can_sleep = true;
107107

108108
return devm_gpiochip_add_data(dev, chip, data);
109109
}

0 commit comments

Comments
 (0)