From patchwork Thu Dec 30 05:35:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sungchun Kang X-Patchwork-Id: 440381 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBUMBEmK000490 for ; Thu, 30 Dec 2010 22:12:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751510Ab0L3F7T (ORCPT ); Thu, 30 Dec 2010 00:59:19 -0500 Received: from ganesha.gnumonks.org ([213.95.27.120]:39944 "EHLO ganesha.gnumonks.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751339Ab0L3F7T (ORCPT ); Thu, 30 Dec 2010 00:59:19 -0500 Received: from uucp by ganesha.gnumonks.org with local-bsmtp (Exim 4.69) (envelope-from ) id 1PYBXh-00030Y-Ip; Thu, 30 Dec 2010 06:59:17 +0100 Received: from [12.23.102.184] (helo=localhost.localdomain) by jackpot.kr.gnumonks.org with esmtp (Exim 4.69) (envelope-from ) id 1PYASs-0003SI-IE; Thu, 30 Dec 2010 13:50:14 +0900 From: Sungchun Kang To: linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: s.nawrocki@samsung.com, kgene.kim@samsung.com, Sungchun Kang Subject: [PATCH] [media] s5p-fimc: fimc_stop_capture bug fix Date: Thu, 30 Dec 2010 14:35:28 +0900 Message-Id: <1293687328-26239-1-git-send-email-sungchun.kang@samsung.com> X-Mailer: git-send-email 1.6.2.5 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 30 Dec 2010 22:12:14 +0000 (UTC) diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c index 4e4441f..821f927 100644 --- a/drivers/media/video/s5p-fimc/fimc-capture.c +++ b/drivers/media/video/s5p-fimc/fimc-capture.c @@ -187,7 +187,7 @@ static int fimc_stop_capture(struct fimc_dev *fimc) spin_unlock_irqrestore(&fimc->slock, flags); wait_event_timeout(fimc->irq_queue, - test_bit(ST_CAPT_SHUT, &fimc->state), + !test_bit(ST_CAPT_SHUT, &fimc->state), FIMC_SHUTDOWN_TIMEOUT); ret = v4l2_subdev_call(cap->sd, video, s_stream, 0);