]> git.baikalelectronics.ru Git - kernel.git/commit
[media] saa6588: after calling CMD_CLOSE, CMD_POLL is broken
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 14 Dec 2013 11:28:34 +0000 (08:28 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 7 Jan 2014 09:40:44 +0000 (07:40 -0200)
commit5b3ed6147a2da34b28b9c99c143db31eeb3a861f
tree94f84ee42c6089ed98fb3461ce2906fbdadf8f15
parent380f2afa93ef2f6b80ffe66b245c85a0da841b8d
[media] saa6588: after calling CMD_CLOSE, CMD_POLL is broken

CMD_CLOSE sets data_available_for_read to 1, which is necessary to do the
wakeup call, but it is never reset to 0.

Because of this calling CMD_POLL afterwards will always return that data is
available, even if there isn't any.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/saa6588.c