From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752109AbcGAFhe (ORCPT ); Fri, 1 Jul 2016 01:37:34 -0400 Received: from smtp5-g21.free.fr ([212.27.42.5]:2282 "EHLO smtp5-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751460AbcGAFhc (ORCPT ); Fri, 1 Jul 2016 01:37:32 -0400 Date: Fri, 1 Jul 2016 07:37:10 +0200 From: Jean-Francois Moine To: =?UTF-8?B?T25kxZllag==?= Jirman Cc: Maxime Ripard , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , dev@linux-sunxi.org, Michael Turquette , Stephen Boyd , open list , Emilio =?UTF-8?B?TMOzcGV6?= , Chen-Yu Tsai , Rob Herring , "open list:COMMON CLK FRAMEWORK" , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 06/14] ARM: sun8i: clk: Add clk-factor rate application method Message-Id: <20160701073710.1a1fc684ae448577bad5b0db@free.fr> In-Reply-To: <0b71ed7e-98c9-109e-85e6-ceb95131d88a@megous.com> References: <20160625034511.7966-1-megous@megous.com> <20160625034511.7966-7-megous@megous.com> <20160630204001.GC5485@lukather> <0b71ed7e-98c9-109e-85e6-ceb95131d88a@megous.com> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.30; armv7l-unknown-linux-gnueabihf) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 1 Jul 2016 02:50:57 +0200 Ondřej Jirman wrote: > > Since this is really specific, I guess you could simply make the > > clk_ops for the nkmp clocks public, and just re-implement set_rate > > using that logic. > > I would argue that this may be necessary for other PLL clocks too, if > you can get out of bounds output frequency, by changing the dividers too > early or too late. So perhaps this code should be generalized for other > PLL clocks too, instead. The documentation says that only the CPU and DDR PLLs can be dynamically changed after boot. -- Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/