]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpio: wcd934x: mark the GPIO controller as sleeping
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 24 Sep 2025 14:51:29 +0000 (16:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:10 +0000 (16:23 +0200)
commitc77c92403781b95c779423ef59909af744f37189
tree4e24ef6eadb65102fc3faa671fea497a8b96f40e
parentbce16a4257ffdf7ffcdbef6a6014724286381df6
gpio: wcd934x: mark the GPIO controller as sleeping

[ Upstream commit b5f8aa8d4bde0cf3e4595af5a536da337e5f1c78 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-wcd934x.c