From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Boyd Subject: Re: [PATCH v2 4/9] clk: rockchip: add new clock type and controller for rk3036 Date: Tue, 22 Sep 2015 15:41:25 -0700 Message-ID: <20150922224125.GK23081@codeaurora.org> References: <1442478540-15068-1-git-send-email-zhengxing@rock-chips.com> <1442478540-15068-5-git-send-email-zhengxing@rock-chips.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1442478540-15068-5-git-send-email-zhengxing@rock-chips.com> Sender: linux-clk-owner@vger.kernel.org To: Xing Zheng Cc: heiko@sntech.de, linux-rockchip@lists.infradead.org, Michael Turquette , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org List-Id: linux-rockchip.vger.kernel.org On 09/17, Xing Zheng wrote: > + > +static void rockchip_rk3036_pll_init(struct clk_hw *hw) init ops are "discouraged". Could we do this through assigned rates instead? > +{ > + struct rockchip_clk_pll *pll = to_rockchip_clk_pll(hw); > + const struct rockchip_pll_rate_table *rate; > + unsigned int fbdiv, postdiv1, refdiv, postdiv2, dsmpd, frac; > + unsigned long drate; > + u32 pllcon; > + > + if (!(pll->flags & ROCKCHIP_PLL_SYNC_RATE)) > + return; I don't understand what this one does though. This check isn't in the set rate ops. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project