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)
commitd58f2bf261fdf3a3fc916c9999a686f959dcf6b6
tree8ce132c9047329bbe752cfa6870b9be11ed87503
parent24bd3efc9d1efb5f756a7c6f807a36ddb6adc671
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