summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-wcd934x.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2025-09-24 16:51:29 +0200
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2025-10-10 09:37:19 +0200
commitb5f8aa8d4bde0cf3e4595af5a536da337e5f1c78 (patch)
tree831b0faaf42ef61c94838562b20fb975bc717bd8 /drivers/gpio/gpio-wcd934x.c
parent434689e971955f487355b3f01e84ee269032bc87 (diff)
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: 59c324683400 ("gpio: wcd934x: Add support to wcd934x gpio controller") Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-wcd934x.c')
-rw-r--r--drivers/gpio/gpio-wcd934x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-wcd934x.c b/drivers/gpio/gpio-wcd934x.c
index 4af504c23e6f..572b85e77370 100644
--- a/drivers/gpio/gpio-wcd934x.c
+++ b/drivers/gpio/gpio-wcd934x.c
@@ -103,7 +103,7 @@ static int wcd_gpio_probe(struct platform_device *pdev)
chip->base = -1;
chip->ngpio = WCD934X_NPINS;
chip->label = dev_name(dev);
- chip->can_sleep = false;
+ chip->can_sleep = true;
return devm_gpiochip_add_data(dev, chip, data);
}