]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: skip unwanted events, don't convert them to opposite edge
authorBartosz Golaszewski <brgl@bgdev.pl>
Mon, 3 Jul 2017 09:12:03 +0000 (11:12 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 1 Aug 2017 12:07:35 +0000 (14:07 +0200)
commit6c2223154f970ebf8a3f3ccbabfd5d1d84347ccf
tree726b2e39ad615a59bbbf7b64d9e0a199a9faa518
parent705d2203059c6257b3cd4de6d93cbce867a265aa
gpiolib: skip unwanted events, don't convert them to opposite edge

The previous fix for filtering out of unwatched events was not entirely
correct. Instead of skipping the events we don't want, they are now
interpreted as events with opposing edge.

In order to fix it: always read the GPIO line value on interrupt and
only emit the event if it corresponds with the event type we requested.

Cc: stable@vger.kernel.org
Fixes: e8590c8cd86a ("gpiolib: fix filtering out unwanted events")
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c