Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752379AbdHAVMm (ORCPT ); Tue, 1 Aug 2017 17:12:42 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:32966 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752016AbdHAVMj (ORCPT ); Tue, 1 Aug 2017 17:12:39 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 83940601D1 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sboyd@codeaurora.org Date: Tue, 1 Aug 2017 14:12:37 -0700 From: Stephen Boyd To: Abhishek Sahu Cc: mturquette@baylibre.com, andy.gross@linaro.org, david.brown@linaro.org, rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC 06/12] Clk: qcom: support for dynamic updating the PLL Message-ID: <20170801211237.GM2146@codeaurora.org> References: <1501153825-5181-1-git-send-email-absahu@codeaurora.org> <1501153825-5181-7-git-send-email-absahu@codeaurora.org> <20170728183428.GH2146@codeaurora.org> <660f193a457e47a290356d377ef30cd2@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <660f193a457e47a290356d377ef30cd2@codeaurora.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2004 Lines: 54 On 07/30, Abhishek Sahu wrote: > On 2017-07-29 00:04, Stephen Boyd wrote: > >On 07/27, Abhishek Sahu wrote: > >>Some of the Alpha PLL’s support dynamic update in which the > >>frequency can be changed dynamically without turning off the PLL. > >> > >>This dynamic update requires the following sequence > >> > >>1. Write the desired values to pll_l_val and pll_alpha_val. > >>2. Toggle pll_latch_input from low to high. > >>3. Wait for pll_ack_latch to transition from low to high. > >> The new L and alpha values have been latched. It make > >> take some time for the PLL to fully settle with these > >> new values. > >>4. Pull pll_latch_input low. > >> > >>Signed-off-by: Abhishek Sahu > > > >I think Rajendra has a similar patch that was sent. Is this the > >same? Can you please look on the list and find it and compare? > > Checked the list. Rajendra has two patches > > 1. https://www.spinics.net/lists/linux-arm-msm/msg23349.html > > Yes my patch does the same thing with minor diffs. > My patch checks PLL_UPDATE_BYPASS and handles both > the cases. We can merge both the patches. I will check > with Rajendra and will work on this merge. Ok. > > 2. Following patch fixes different issue although flag name > is common. > > https://patchwork.kernel.org/patch/9662917/ > > Shall I include this patch in my patch series but not > sure we can directly turn off the PLL inside the PLL > set rate operation since it will turn the PLL off for > all its users. > Hopefully the users of a PLL that doesn't support dynamic rate update can accept the fact that the clk will turn off while the rate is reprogrammed. At least that seems to be true for Taniya in that patch set. If it isn't true for your hardware, then don't specify the flag? Or is the problem that you may not have the flag set for certain PLLs that you're supporting? -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project