From patchwork Fri Oct 9 11:09:42 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 52706 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n99BFId1029072 for ; Fri, 9 Oct 2009 11:15:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760300AbZJILKY (ORCPT ); Fri, 9 Oct 2009 07:10:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759715AbZJILKX (ORCPT ); Fri, 9 Oct 2009 07:10:23 -0400 Received: from mail.renesas.com ([202.234.163.13]:47163 "EHLO mail02.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758148AbZJILKX (ORCPT ); Fri, 9 Oct 2009 07:10:23 -0400 X-AuditID: ac140385-00000008000002de-d5-4acf19f5588d Received: from guardian01.idc.renesas.com ([172.20.8.200]) by mail02.idc.renesas.com (sendmail) with ESMTP id n99B9fAj009177; Fri, 9 Oct 2009 20:09:41 +0900 (JST) Received: (from root@localhost) by guardian01.idc.renesas.com with id n99B9hjZ012306; Fri, 9 Oct 2009 20:09:43 +0900 (JST) Received: from mta02.idc.renesas.com (localhost [127.0.0.1]) by mta02.idc.renesas.com with ESMTP id n99B9gka023075; Fri, 9 Oct 2009 20:09:42 +0900 (JST) Received: from PG10870.renesas.com ([172.30.8.159]) by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0KR800H3JV06S3@ims05.idc.renesas.com>; Fri, 09 Oct 2009 20:09:42 +0900 (JST) Date: Fri, 09 Oct 2009 20:09:42 +0900 From: Kuninori Morimoto Subject: [PATCH] soc-camera: tw9910: Revision 0 and 1 are able to use To: Guennadi Liakhovetski Cc: Linux Media Mailing List 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 diff --git a/drivers/media/video/tw9910.c b/drivers/media/video/tw9910.c index 269ab04..7bf90a2 100644 --- a/drivers/media/video/tw9910.c +++ b/drivers/media/video/tw9910.c @@ -883,11 +883,12 @@ static int tw9910_video_probe(struct soc_camera_device *icd, /* * check and show Product ID + * So far only revisions 0 and 1 have been seen */ val = i2c_smbus_read_byte_data(client, ID); if (0x0B != GET_ID(val) || - 0x00 != GET_ReV(val)) { + 0x01 < GET_ReV(val)) { dev_err(&client->dev, "Product ID error %x:%x\n", GET_ID(val), GET_ReV(val)); return -ENODEV;