Messages in this thread | | | From | Linus Walleij <> | Date | Thu, 16 Apr 2020 13:37:01 +0200 | Subject | Re: [PATCH] gpiolib: improve the robustness of watch/unwatch ioctl() |
| |
On Wed, Apr 15, 2020 at 10:24 AM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> From: Bartosz Golaszewski <bgolaszewski@baylibre.com> > > This makes the new ioctl() a bit more robust - we now check if a line > is already being watched and return -EBUSY if the user-space tries to > start watching it again. Same for unwatch - return -EBUSY if user-space > tries to unwatch a line that's not being watched. > > Fixes: 51c1064e82e7 ("gpiolib: add new ioctl() for monitoring changes in line info") > Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
I expect that you send me a pull request with some GPIO fixes when you feel you have some stuff including this I should send upstream, thanks!
Yours, Linus Walleij
| |