From patchwork Tue Dec 22 16:45:42 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 69301 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBMGjsTD002432 for ; Tue, 22 Dec 2009 16:45:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754082AbZLVQpx (ORCPT ); Tue, 22 Dec 2009 11:45:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754075AbZLVQpx (ORCPT ); Tue, 22 Dec 2009 11:45:53 -0500 Received: from mail-pz0-f171.google.com ([209.85.222.171]:42022 "EHLO mail-pz0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753991AbZLVQpw (ORCPT ); Tue, 22 Dec 2009 11:45:52 -0500 Received: by pzk1 with SMTP id 1so4588781pzk.33 for ; Tue, 22 Dec 2009 08:45:51 -0800 (PST) Received: by 10.140.248.10 with SMTP id v10mr3457141rvh.174.1261500345225; Tue, 22 Dec 2009 08:45:45 -0800 (PST) Received: from localhost (deeprootsystems.com [216.254.16.51]) by mx.google.com with ESMTPS id 21sm6169302pzk.11.2009.12.22.08.45.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 22 Dec 2009 08:45:44 -0800 (PST) To: Cc: linux-omap , "Cousson\, Benoit" , "Chikkature Rajashekar\, Madhusudhan" , Paul Walmsley , "Dasgupta\, Romit" , "Premi\, Sanjeev" , "Shilimkar\, Santosh" , "Aguirre\, Sergio" , "Gopinath\, Thara" , "Sripathy\, Vishwanath" , "K\, Ambresh" Subject: Re: [PATCH 5/9] omap3: pm: sr: replace get_opp with freq_to_opp References: <1258004721-7315-1-git-send-email-nm@ti.com> <1258004721-7315-2-git-send-email-nm@ti.com> <1258004721-7315-3-git-send-email-nm@ti.com> <1258004721-7315-4-git-send-email-nm@ti.com> <1258004721-7315-5-git-send-email-nm@ti.com> <1258004721-7315-6-git-send-email-nm@ti.com> <87eimrx4em.fsf@deeprootsystems.com> <4B2CBA8A.5030905@ti.com> From: Kevin Hilman Organization: Deep Root Systems, LLC Date: Tue, 22 Dec 2009 08:45:42 -0800 In-Reply-To: <4B2CBA8A.5030905@ti.com> (Nishanth Menon's message of "Sat\, 19 Dec 2009 17\:05\:38 +0530") Message-ID: <87k4wfrm89.fsf@deeprootsystems.com> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index d341857..01a3dbd 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c @@ -155,6 +155,8 @@ static u8 get_vdd1_opp(void) mpu_opps == NULL) return 0; + printk("%s: sr1.vdd_opp_clk->rate = %d\n", __func__, + sr1.vdd_opp_clk->rate); opp = opp_find_freq_exact(mpu_opps, sr1.vdd_opp_clk->rate, true); if (IS_ERR(opp)) return 0; @@ -451,6 +453,7 @@ static int sr_reset_voltage(int srid) target_opp_no = get_vdd1_opp(); if (!target_opp_no) { pr_info("Current OPP unknown: Cannot reset voltage\n"); + __backtrace(); return 1; }