From patchwork Tue Feb 2 04:17:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 2552 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Tue, 02 Feb 2010 05:25:41 +0000 Received: from bombadil.infradead.org [18.85.46.34] by pedra with IMAP (fetchmail-6.3.6) for (single-drop); Tue, 02 Feb 2010 09:10:34 -0200 (BRST) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NcBGf-0005aE-Bp; Tue, 02 Feb 2010 05:25:41 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751378Ab0BBFZk (ORCPT + 1 other); Tue, 2 Feb 2010 00:25:40 -0500 Received: from mail.renesas.com ([202.234.163.13]:63784 "EHLO mail03.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750905Ab0BBFZj (ORCPT ); Tue, 2 Feb 2010 00:25:39 -0500 X-AuditID: ac140386-0000000a00003037-e9-4b67b74e58e2 Received: from guardian02.idc.renesas.com ([172.20.8.201]) by mail03.idc.renesas.com (sendmail) with ESMTP id o125PYTD023728; Tue, 2 Feb 2010 14:25:34 +0900 (JST) Received: (from root@localhost) by guardian02.idc.renesas.com with id o125PYmZ029748; Tue, 2 Feb 2010 14:25:34 +0900 (JST) Received: from mta01.idc.renesas.com (localhost [127.0.0.1]) by mta01.idc.renesas.com with ESMTP id o125PXGp012124; Tue, 2 Feb 2010 14:25:33 +0900 (JST) Received: from PG10870.renesas.com ([172.30.8.159]) by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0KX700EGX8EJS9@ims05.idc.renesas.com>; Tue, 02 Feb 2010 14:25:31 +0900 (JST) Date: Tue, 02 Feb 2010 13:17:54 +0900 From: Kuninori Morimoto Subject: [PATCH 1/3] soc-camera: mt9t112: modify exiting conditions from standby mode To: Guennadi Cc: Linux-V4L2 , Phil.Edworthy@renesas.com, Takashi.Namiki@renesas.com Message-id: MIME-version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-type: text/plain; charset=US-ASCII User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.3 (i386-msvc-nt5.1.2600) MULE/5.0 (SAKAKI) Meadow/3.02-dev (RINDOU) (2009-06-17 Rev.4261) X-Brightmail-Tracker: AAAAAA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This polling is needed if camera is in standby mode. But current exiting condition is inverted. Signed-off-by: Kuninori Morimoto --- drivers/media/video/mt9t112.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/mt9t112.c b/drivers/media/video/mt9t112.c index fc4dd60..7438f8d 100644 --- a/drivers/media/video/mt9t112.c +++ b/drivers/media/video/mt9t112.c @@ -514,7 +514,7 @@ static int mt9t112_init_pll(const struct i2c_client *client) /* poll to verify out of standby. Must Poll this bit */ for (i = 0; i < 100; i++) { mt9t112_reg_read(data, client, 0x0018); - if (0x4000 & data) + if (!(0x4000 & data)) break; mdelay(10);