From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH] OMAP3 clock: fix non-CORE DPLL rate assignment bugs Date: Fri, 17 Oct 2008 15:46:13 -0700 Message-ID: <20081017224612.GL18573@atomide.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mho-01-bos.mailhop.org ([63.208.196.178]:57709 "EHLO mho-01-bos.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753717AbYJQWqP (ORCPT ); Fri, 17 Oct 2008 18:46:15 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Paul Walmsley Cc: linux-omap@vger.kernel.org, tomi.valkeinen@nokia.com, rick@efn.org, timo.t.kokkonen@nokia.com, sakari.poussa@nokia.com * Paul Walmsley [081017 15:19]: > > Commit 8b1f0bd44fe490ec631230c8c040753a2bda8caa introduced a bug that > caused non-CORE DPLL rates to be incorrectly set on boot in > omap3_noncore_dpll_enable(). Debugged by Tomi Valkeinen > - thanks Tomi. > > Also fix omap3_noncore_dpll_set_rate() to assign clk->rate after a > DPLL reprogram. > > Tested on 3430SDP. Great, pushing today. Tony > > > Signed-off-by: Paul Walmsley > Cc: Tomi Valkeinen > Cc: Rick Bronson > Cc: Timo Kokkonen > Cc: Sakari Poussa > --- > arch/arm/mach-omap2/clock34xx.c | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c > index df258f7..cc43f4f 100644 > --- a/arch/arm/mach-omap2/clock34xx.c > +++ b/arch/arm/mach-omap2/clock34xx.c > @@ -271,7 +271,6 @@ static int _omap3_noncore_dpll_stop(struct clk *clk) > static int omap3_noncore_dpll_enable(struct clk *clk) > { > int r; > - long rate; > struct dpll_data *dd; > > if (clk == &dpll3_ck) > @@ -287,7 +286,7 @@ static int omap3_noncore_dpll_enable(struct clk *clk) > r = _omap3_noncore_dpll_lock(clk); > > if (!r) > - clk->rate = rate; > + clk->rate = omap2_get_dpll_rate(clk); > > return r; > } > @@ -430,6 +429,9 @@ static int omap3_noncore_dpll_set_rate(struct clk *clk, unsigned long rate) > ret = omap3_noncore_dpll_program(clk, dd->last_rounded_m, > dd->last_rounded_n, freqsel); > > + if (!ret) > + clk->rate = rate; > + > } > > omap3_dpll_recalc(clk); > -- > To unsubscribe from this list: send the line "unsubscribe linux-omap" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html