upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:58:45 +0000 (11:58 +0900)
commit3ea80f0ecfa9356d5bb4348cd3a2618e61b0c60a
tree305ce120c9b6efb2c1a0c492701bfb8ff46e8b9b
parentf42a3266c8e65373990f9db29e569024a7a1be72
upstream: [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