From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.codeaurora.org ([198.145.29.96]:46651 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932820AbbHZSgk (ORCPT ); Wed, 26 Aug 2015 14:36:40 -0400 Date: Wed, 26 Aug 2015 11:36:38 -0700 From: Stephen Boyd To: Govindraj Raja Cc: linux-mips@linux-mips.org, linux-clk@vger.kernel.org, Michael Turquette , Zdenko Pulitika , Kevin Cernekee , Ralf Baechle , Andrew Bresticker , James Hartley , Damien Horsley , James Hogan , Ezequiel Garcia , Sergei Shtylyov , stable@vger.kernel.org Subject: Re: [PATCH v6 3/4] clk: pistachio: Fix PLL rate calculation in integer mode Message-ID: <20150826183638.GQ19120@codeaurora.org> References: <1440605500-13274-1-git-send-email-Govindraj.Raja@imgtec.com> <1440605500-13274-4-git-send-email-Govindraj.Raja@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1440605500-13274-4-git-send-email-Govindraj.Raja@imgtec.com> Sender: stable-owner@vger.kernel.org List-ID: On 08/26, Govindraj Raja wrote: > From: Zdenko Pulitika > > .recalc_rate callback for the fractional PLL doesn't take operating > mode into account when calculating PLL rate. This results in > the incorrect PLL rates when PLL is operating in integer mode. > > Operating mode of fractional PLL is based on the value of the > fractional divider. Currently it assumes that the PLL will always > be configured in fractional mode which may not be > the case. This may result in the wrong output frequency. > > Also vco was calculated based on the current operating mode which > makes no sense because .set_rate is setting operating mode. Instead, > vco should be calculated using PLL settings that are about to be set. > > Fixes: 43049b0c83f17("CLK: Pistachio: Add PLL driver") > Cc: # 4.1 > Reviewed-by: Andrew Bresticker > Signed-off-by: Zdenko Pulitika > Signed-off-by: Govindraj Raja > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project