]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: sim: lock up configfs that an instantiated device depends on
authorKoichiro Den <koichiro.den@canonical.com>
Fri, 3 Jan 2025 14:18:29 +0000 (23:18 +0900)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 3 Jan 2025 16:15:04 +0000 (17:15 +0100)
commit8bd76b3d3f3af7ac2898b6a27ad90c444fec418f
tree4f54b0308724187b5cab38bc7e260c510ac89b00
parentc7c434c1dba955005f5161dae73f09c0a922cfa7
gpio: sim: lock up configfs that an instantiated device depends on

Once a sim device is instantiated and actively used, allowing rmdir for
its configfs serves no purpose and can be confusing. Effectively,
arbitrary users start depending on its existence.

Make the subsystem itself depend on the configfs entry for a sim device
while it is in active use.

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