From patchwork Tue Mar 15 19:56:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Green X-Patchwork-Id: 636971 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 p2FJuj7G006837 for ; Tue, 15 Mar 2011 19:56:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755076Ab1COT4o (ORCPT ); Tue, 15 Mar 2011 15:56:44 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:62524 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753765Ab1COT4o (ORCPT ); Tue, 15 Mar 2011 15:56:44 -0400 Received: by mail-wy0-f174.google.com with SMTP id 21so915512wya.19 for ; Tue, 15 Mar 2011 12:56:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:sender:from:subject:to:cc:date:message-id :in-reply-to:references:user-agent:mime-version:content-type :content-transfer-encoding; bh=P80bVNCoxJPVOVCOSoZYtrwwOT5dbAbA+O7HVldrLOE=; b=tkW5o+RMLSPtuSsoqv7+7Wez8k6LUbn3yHU1gVttHI1SPOYMUQAGWgJjkqT2uggYmg IlKUDIxTQfbCo9lBgjwyzfUM4woQJEgFg1Q3Gp8it8T1VEG1iBKEcwVn1YvhZF1F9JnR zK+CO7WIyRNOwN3uvIkVwe0s4rwpIJsHCC6QM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:from:subject:to:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; b=uTb35aaPjZg1t6S7JzVsrFlGGbnVB9XvclQO40erA8MvMVcCciFczIo8k4cjs5x20q GhNK5eXCZIqQEGFlLItf/CdGoozTYySWlWLcqXHUHbqGzG67kqpbSw917l46ItqVCEW4 C9ZKNdXd6B0fqNHn2Jv43uXm+1lPHX5Xyzexk= Received: by 10.216.138.66 with SMTP id z44mr4587900wei.87.1300219003708; Tue, 15 Mar 2011 12:56:43 -0700 (PDT) Received: from otae.warmcat.com (s15404224.onlinehome-server.info [87.106.134.80]) by mx.google.com with ESMTPS id o19sm113028wee.2.2011.03.15.12.56.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Mar 2011 12:56:43 -0700 (PDT) From: Andy Green Subject: [PATCH 3 07/18] I2C: OMAP2+: Pass hwmod rev knowledge via platform_data when i2c bus added To: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Cc: patches@linaro.org, Ben Dooks , Andy Green Date: Tue, 15 Mar 2011 19:56:41 +0000 Message-ID: <20110315195641.30000.60794.stgit@otae.warmcat.com> In-Reply-To: <20110315195147.30000.86184.stgit@otae.warmcat.com> References: <20110315195147.30000.86184.stgit@otae.warmcat.com> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 15 Mar 2011 19:56:46 +0000 (UTC) diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c index 0a1b5af..34a3319 100644 --- a/arch/arm/plat-omap/i2c.c +++ b/arch/arm/plat-omap/i2c.c @@ -155,6 +155,12 @@ static inline int omap2_i2c_add_bus(int bus_id) pdata = &i2c_pdata[bus_id - 1]; /* + * pass the hwmod class's CPU-specific knowledge of I2C IP revision in + * use up to the OMAP I2C driver via platform data + */ + pdata->rev = oh->class->rev; + + /* * When waiting for completion of a i2c transfer, we need to * set a wake up latency constraint for the MPU. This is to * ensure quick enough wakeup from idle, when transfer