]> Pileus Git - ~andy/linux/commit
[media] s5p-mfc: call wake_up_dev if in suspend mode
authorPrathyush K <prathyush.k@samsung.com>
Fri, 4 Oct 2013 04:47:19 +0000 (01:47 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 28 Oct 2013 18:51:41 +0000 (16:51 -0200)
commit76a4ddbd52d5c62c54afd03c0d9092045351911f
treeaf0a6dca5dad67cc9ae0baaf3584a3fa402cdec1
parentd6950c47218579180b69fef482402094a7a7fbda
[media] s5p-mfc: call wake_up_dev if in suspend mode

If a frame is still decoding when system enters suspend mode, we wait
on the device queue for a interrupt condition. This sometimes leads to a
timeout because the device queue might not be woken up everytime.
Usually, the context queue gets woken up when that context's frame gets
decoded. This patch adds a condition to wake up the device queue along
with the context queue when the system is in suspend mode.
Since the device queue is now woken up, we don't have to check the
context's int_cond flag while waiting. Also, we can skip calling try_run
after waking up the device queue to ensure that we don't have to wait
for more than one frame to be processed.

Signed-off-by: Prathyush K <prathyush.k@samsung.com>
Signed-off-by: Arun Mankuzhi <arun.m@samsung.com>
Signed-off-by: Arun Kumar K <arun.kk@samsung.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/s5p-mfc/s5p_mfc.c