]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: notify user-space about line status changes after flags are set
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Sat, 9 May 2020 14:08:13 +0000 (16:08 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 13 May 2020 14:25:20 +0000 (16:25 +0200)
commit12b45d6535edcecf5b764b8b15d658aecc665342
tree51d479bcf51501a9aaf0cf5fe20f1194301ece13
parent467a88f2b2b6101bc17114ac67b69edb36145c79
gpiolib: notify user-space about line status changes after flags are set

Currently we emit the REQUESTED line state event after the line is
requested but before the flags are configured. This is obviously wrong
as we want to pass the updated lineinfo to user-space together with the
event.

Since the flags can be configured in different ways depending on how the
line is being requested - we need to call the notifier chain in different
places separately.

Fixes: 0df052ed08fa ("gpiolib: add new ioctl() for monitoring changes in line info")
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpiolib.c