]> git.ipfire.org Git - thirdparty/linux.git/commit
gpio: aggregator: cancel deferred probe for devices created via configfs
authorKoichiro Den <koichiro.den@canonical.com>
Mon, 7 Apr 2025 04:30:17 +0000 (13:30 +0900)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 9 Apr 2025 14:57:29 +0000 (16:57 +0200)
commit0269c768de1b5e430c3f9a6869261606c82abe90
tree7738e8ee8ffa4d23cc1e89eab01ede505b731afb
parent83c8e3df642f5fde320278a5e6ce9e46f9689d1a
gpio: aggregator: cancel deferred probe for devices created via configfs

For aggregators initialized via configfs, write 1 to 'live' waits for
probe completion and returns an error if the probe fails, unlike the
legacy sysfs interface, which is asynchronous.

Since users control the liveness of the aggregator device and might be
editing configurations while 'live' is 0, deferred probing is both
unnatural and unsafe.

Cancel deferred probe for purely configfs-based aggregators when probe
fails.

Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Link: https://lore.kernel.org/r/20250407043019.4105613-8-koichiro.den@canonical.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-aggregator.c