linux/drivers/media
Dylan Rajaratnam ea0de4ec54 [media] img-ir/hw: Always read data to clear buffer
A problem was found on Polaris where if the unit it booted via the power
button on the infrared remote then the next button press on the remote
would return the key code used to power on the unit.

The sequence is:
 - The polaris powered off but with the powerdown controller (PDC) block
   still powered.
 - Press power key on remote, IR block receives the key.
 - Kernel starts, IR code is in IMG_IR_DATA_x but neither IMG_IR_RXDVAL
   or IMG_IR_RXDVALD2 are set.
 - Wait any amount of time.
 - Press any key.
 - IMG_IR_RXDVAL or IMG_IR_RXDVALD2 is set but IMG_IR_DATA_x is
   unchanged since the powerup key data was never read.

This is worked around by always reading the IMG_IR_DATA_x in
img_ir_set_decoder(), rather than only when the IMG_IR_RXDVAL or
IMG_IR_RXDVALD2 bit is set.

Signed-off-by: Dylan Rajaratnam <dylan.rajaratnam@imgtec.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: <stable@vger.kernel.org> # v3.15+
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2014-12-04 15:28:53 -02:00
..
common [media] siano: unnecessary check before rc_unregister_device() 2014-11-25 13:44:34 -02:00
dvb-core [media] cxusb: Geniatech T230 support 2014-11-25 09:15:54 -02:00
dvb-frontends [media] stv090x: add an extra protetion against buffer overflow 2014-12-04 15:28:46 -02:00
firewire [media] firewire: Deletion of an unnecessary check before the function call "dvb_unregister_device" 2014-11-25 13:30:31 -02:00
i2c [media] smiapp: Support V4L2_SEL_TGT_NATIVE_SIZE 2014-12-04 12:39:35 -02:00
mmc [media] siano: get rid of CammelCase from smscoreapi.h 2013-03-21 10:03:16 -03:00
parport [media] pms: Fix a bad usage of the stack 2014-09-26 06:47:55 -03:00
pci [media] ddbridge: remove unneeded check before dvb_unregister_device() 2014-12-04 15:28:52 -02:00
platform [media] media: exynos-gsc: fix build warning 2014-12-04 12:50:44 -02:00
radio [media] media/radio: fix querycap 2014-12-02 11:30:55 -02:00
rc [media] img-ir/hw: Always read data to clear buffer 2014-12-04 15:28:53 -02:00
tuners [media] si2157: One function call less in si2157_init() after error 2014-12-04 15:28:51 -02:00
usb [media] em28xx: checkpatch cleanup: whitespaces/new lines cleanups 2014-12-04 14:13:14 -02:00
v4l2-core [media] v4l: vb2: Fix race condition in _vb2_fop_release 2014-12-04 12:41:51 -02:00
Kconfig [media] Kconfig: do not select SPI bus on sub-driver auto-select 2014-09-04 12:18:49 -03:00
Makefile
media-device.c [media] media: Use strlcpy instead of custom code 2014-09-21 20:27:08 -03:00
media-devnode.c [media] media-devnode: just return 0 instead of using a var 2014-09-03 17:59:28 -03:00
media-entity.c [media] media: Fix a compiler warning in media_entity_pipeline_start() 2014-11-03 19:09:13 -02:00