From 793aab693fdb0713f2055ea5e9b7b6aacda3e26d Mon Sep 17 00:00:00 2001 From: Shilpa Mamidi Date: Wed, 2 Dec 2015 13:36:46 +0530 Subject: msm: cpp: timer used should be set without queue length check There could be case where send frame is called before frame done in these cases queue length could be more than 1. To fix this issue timer used should be set without queue length check. Change-Id: I2bf15efc36b3a5fb81b97903c323f0ff737eb56b Signed-off-by: Shilpa Mamidi --- drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c b/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c index 2b44058ac98e..3bfb51760c2f 100644 --- a/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c +++ b/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c @@ -1919,9 +1919,8 @@ static int msm_cpp_send_frame_to_hardware(struct cpp_device *cpp_dev, queue_len = cpp_dev->processing_q.len; spin_unlock_irqrestore(&cpp_timer.data.processed_frame_lock, flags); - if (queue_len == 1) { - atomic_set(&cpp_timer.used, 1); - } + atomic_set(&cpp_timer.used, 1); + CPP_DBG("Starting timer to fire in %d ms. (jiffies=%lu)\n", CPP_CMD_TIMEOUT_MS, jiffies); ret = mod_timer(&cpp_timer.cpp_timer, -- cgit v1.2.3