linux-stable/drivers/media
Heiner Kallweit d42fd29769 [media] media: rc: nuvoton-cir: fix interrupt handling
Only handle an interrupt if at least one combination of event bit
and related interrupt bit is set.
Previously it was just checked that at least one event bit and
at least one interrupt bit are set.

This fixes issues like the following which was caused by
interrupt sharing:
An interrupt intended for nvt_cir_isr was handled by nvt_cir_wake_isr
first and because status bit CIR_WAKE_IRSTS_IR_PENDING was set
the wake fifo was accidently cleared.

This patch also fixes the bug that nvt_cir_wake_isr returned IRQ_HANDLED
even if it detected that the (shared) interrupt was meant for another
handler.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2016-02-01 08:51:33 -02:00
..
common [media] media: change email address 2016-01-25 12:01:08 -02:00
dvb-core [media] tuner.h: rename TUNER_PAD_IF_OUTPUT to TUNER_PAD_OUTPUT 2016-02-01 07:19:08 -02:00
dvb-frontends [media] constify stv6110x_devctl structure 2016-02-01 07:31:17 -02:00
firewire [media] dvb: modify core to implement interfaces/entities at MC new gen 2016-01-11 12:18:52 -02:00
i2c [media] media: adv7604: implement get_selection 2016-02-01 08:03:32 -02:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci [media] media: bt8xx: constify sp887x_config structure 2016-02-01 07:58:47 -02:00
platform [media] media: ti-vpe: Add CAL v4l2 camera capture driver 2016-02-01 08:45:26 -02:00
radio [media] radio-si476x: add return value check to avoid dead code 2016-02-01 08:01:15 -02:00
rc [media] media: rc: nuvoton-cir: fix interrupt handling 2016-02-01 08:51:33 -02:00
tuners [media] xc2028: avoid use after free 2016-02-01 07:16:18 -02:00
usb [media] cx231xx: Fix memory leak 2016-02-01 08:00:47 -02:00
v4l2-core [media] media: v4l2-compat-ioctl32: fix missing length copy in put_v4l2_buffer32 2016-02-01 08:15:21 -02:00
Kconfig [media] Kconfig: Re-enable Media controller support for DVB 2016-01-11 12:18:40 -02:00
Makefile [media] bq/c-qcam, w9966, pms: move to staging in preparation for removal 2014-12-16 23:21:44 -02:00
media-device.c Revert "[media] Postpone the addition of MEDIA_IOC_G_TOPOLOGY" 2016-01-25 07:29:43 -02:00
media-devnode.c [media] media-devnode: move kernel-doc documentation to the header 2016-01-11 12:19:13 -02:00
media-entity.c [media] media-entitiy: add a function to create multiple links 2016-01-11 12:19:26 -02:00