aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-eic-sprd.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2019-01-04 11:24:20 +0100
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2019-01-23 17:24:01 +0100
commit1033be58992f818dc564196ded2bcc3f360bc297 (patch)
tree837ac0c44192f43def42e7fe9cd17c6358ea46c8 /drivers/gpio/gpio-eic-sprd.c
parentgpio: pcf857x: Fix interrupts on multiple instances (diff)
downloadlinux-dev-1033be58992f818dc564196ded2bcc3f360bc297.tar.xz
linux-dev-1033be58992f818dc564196ded2bcc3f360bc297.zip
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