]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: Timestamp events in hardirq handler
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 30 Nov 2017 09:23:27 +0000 (10:23 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 23 Jan 2018 13:43:57 +0000 (14:43 +0100)
commit5db6d762cf2898f466ebe588124a0c9c4332f7e3
tree8ce132c9047329bbe752cfa6870b9be11ed87503
parente9917568e5df2a833594dc7336b0f77bedb8e410
gpio: Timestamp events in hardirq handler

Add a hardirq handler to the GPIO userspace event loop, making
sure to pick up the timestamp there, as close as possible in time
relative to the actual event causing the interrupt.

Tested with a simple pushbutton GPIO on ux500 and seems to work
fine.

Cc: Bartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Reported-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c