From patchwork Wed May 20 12:26:57 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 24978 X-Patchwork-Delegate: khilman@deeprootsystems.com 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 n4KCY9e7029534 for ; Wed, 20 May 2009 12:34:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756132AbZETMdb (ORCPT ); Wed, 20 May 2009 08:33:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754446AbZETMdb (ORCPT ); Wed, 20 May 2009 08:33:31 -0400 Received: from smtp.nokia.com ([192.100.122.233]:21772 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756132AbZETMda (ORCPT ); Wed, 20 May 2009 08:33:30 -0400 Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-mx06.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id n4KCXHvK024390; Wed, 20 May 2009 15:33:24 +0300 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by esebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 20 May 2009 15:27:35 +0300 Received: from mgw-sa02.ext.nokia.com ([147.243.1.48]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Wed, 20 May 2009 15:27:34 +0300 Received: from localhost.localdomain (esdhcp039131.research.nokia.com [172.21.39.131]) by mgw-sa02.ext.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id n4KCRYwM003499; Wed, 20 May 2009 15:27:34 +0300 From: Roger Quadros To: khilman@deeprootsystems.com Cc: linux-omap@vger.kernel.org Subject: [PATCH] OMAP3: PM: Smartreflex: Fix VDD2 OPP determining logic Date: Wed, 20 May 2009 15:26:57 +0300 Message-Id: <1242822417-17829-1-git-send-email-ext-roger.quadros@nokia.com> X-Mailer: git-send-email 1.6.0.4 X-OriginalArrivalTime: 20 May 2009 12:27:34.0759 (UTC) FILETIME=[5A978F70:01C9D946] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Use l3_ick clock rate to find out current VDD2 OPP since VDD2 OPP table uses rates corresponding to L3 clock. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/smartreflex.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index 061cd4e..422c917 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c @@ -184,7 +184,7 @@ static u16 get_vdd2_opp(void) u16 opp; struct clk *clk; - clk = clk_get(NULL, "dpll3_m2_ck"); + clk = clk_get(NULL, "l3_ick"); if (clk == NULL || IS_ERR(clk) || l3_opps == NULL) return 0;