diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2019-01-04 11:24:20 +0100 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2019-01-23 17:24:01 +0100 |
commit | 1033be58992f818dc564196ded2bcc3f360bc297 (patch) | |
tree | 837ac0c44192f43def42e7fe9cd17c6358ea46c8 /drivers/gpio/gpio-eic-sprd.c | |
parent | 2486e67374aa8b7854c2de32869642c2873b3d53 (diff) |
gpiolib: fix line event timestamps for nested irqs
Nested interrupts run inside the calling thread's context and the top
half handler is never called which means that we never read the
timestamp.
This issue came up when trying to read line events from a gpiochip
using regmap_irq_chip for interrupts.
Fix it by reading the timestamp from the irq thread function if it's
still 0 by the time the second handler is called.
Fixes: d58f2bf261fd ("gpio: Timestamp events in hardirq handler")
Cc: stable@vger.kernel.org
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio/gpio-eic-sprd.c')
0 files changed, 0 insertions, 0 deletions