]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit9fefca775c8ddbbbcd97f2860218188b8641819d
tree51d479bcf51501a9aaf0cf5fe20f1194301ece13
parent333830aa149a87cabeb5d30fbcf12eecc8040d2c
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: 51c1064e82e7 ("gpiolib: add new ioctl() for monitoring changes in line info")
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpiolib.c