Skip to content
Commit 9fefca77 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski
Browse files

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: 51c1064e ("gpiolib: add new ioctl() for monitoring changes in line info")
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent 333830aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment