summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/hi8435.c
diff options
context:
space:
mode:
authorRaveendra Padasalagi <raveendra.padasalagi@broadcom.com>2017-05-16 08:52:42 +0200
committerJonathan Cameron <jic23@kernel.org>2017-05-21 14:01:17 +0200
commitf7d86ecf83cb66d3c4c6ac4edb1dd50c0919aa2b (patch)
treef7dc3da6807be4b53e57b66cc7d71c842de59604 /drivers/iio/adc/hi8435.c
parentiio: trigger: fix NULL pointer dereference in iio_trigger_write_current() (diff)
downloadlinux-f7d86ecf83cb66d3c4c6ac4edb1dd50c0919aa2b.tar.xz
linux-f7d86ecf83cb66d3c4c6ac4edb1dd50c0919aa2b.zip
iio: adc: bcm_iproc_adc: swap primary and secondary isr handler's
The third argument of devm_request_threaded_irq() is the primary handler. It is called in hardirq context and checks whether the interrupt is relevant to the device. If the primary handler returns IRQ_WAKE_THREAD, the secondary handler (a.k.a. handler thread) is scheduled to run in process context. bcm_iproc_adc.c uses the secondary handler as the primary one and the other way around. So this patch fixes the same, along with re-naming the secondary handler and primary handler names properly. Tested on the BCM9583XX iProc SoC based boards. Fixes: 4324c97ecedc ("iio: Add driver for Broadcom iproc-static-adc") Reported-by: Pavel Roskin <plroskin@gmail.com> Signed-off-by: Raveendra Padasalagi <raveendra.padasalagi@broadcom.com> Cc: stable@vger.kernel.org Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/hi8435.c')
0 files changed, 0 insertions, 0 deletions