diff options
author | Alexander Sverdlin <alexander.sverdlin@gmail.com> | 2024-03-08 00:43:16 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-03-08 12:32:00 +0300 |
commit | 8636f19c2d1f8199b27b4559d9caa115b3011f06 (patch) | |
tree | d64caa721f6799f2e8c9dbb090abae7f2b019ea1 /Documentation/userspace-api | |
parent | 297dc37a1e65f2f7378c2f755516d2c8c1db2c32 (diff) | |
download | linux-8636f19c2d1f8199b27b4559d9caa115b3011f06.tar.xz |
gpio: sysfs: repair export returning -EPERM on 1st attempt
It would make sense to return -EPERM if the bit was already set (already
used), not if it was cleared. Before this fix pins can only be exported on
the 2nd attempt:
$ echo 522 > /sys/class/gpio/export
sh: write error: Operation not permitted
$ echo 522 > /sys/class/gpio/export
Fixes: 35b545332b80 ("gpio: remove gpio_lock")
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'Documentation/userspace-api')
0 files changed, 0 insertions, 0 deletions