From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matti Vaittinen Subject: Re: [PATCH v4 1/8] clk: clkdev/of_clk - add managed lookup and provider registrations Date: Fri, 30 Nov 2018 14:59:04 +0200 Message-ID: <20181130125904.GB15388@localhost.localdomain> References: <154356805035.88331.16867826308376667832@swboyd.mtv.corp.google.com> <20181130105022.GA15388@localhost.localdomain> <20181130110653.GF30658@n2100.armlinux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20181130110653.GF30658@n2100.armlinux.org.uk> Sender: linux-kernel-owner@vger.kernel.org To: Russell King - ARM Linux Cc: Stephen Boyd , mazziesaccount@gmail.com, Jonathan Corbet , Michael Turquette , Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Andy Gross , David Brown , Andrey Smirnov , Guenter Roeck , Rob Herring , Sebastian Reichel , Lee Jones , Huang Shijie , Daniel Kurtz , Akshu Agrawal , "Rafael J. Wysocki" , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@ List-Id: linux-arm-msm@vger.kernel.org On Fri, Nov 30, 2018 at 11:06:53AM +0000, Russell King - ARM Linux wrote: > On Fri, Nov 30, 2018 at 12:50:22PM +0200, Matti Vaittinen wrote: > > Hello Stephen, > > > > Thanks a bunch for taking the time and reviewing this! > > > > On Fri, Nov 30, 2018 at 12:54:10AM -0800, Stephen Boyd wrote: > > > Quoting Matti Vaittinen (2018-11-13 03:55:58) > > > > With MFD devices the clk properties may be contained in MFD (parent) DT > > > > node. Current devm_of_clk_add_hw_provider assumes the clk is bound to MFD > > > > subdevice not to MFD device (parent). Add > > > > devm_of_clk_add_hw_provider_parent to tackle this issue. > > > > > > > > Also clkdev registration lacks of managed registration functions and it > > > > seems few drivers do not drop clkdev lookups at exit. Add > > > > devm_clk_hw_register_clkdev and devm_clk_release_clkdev to ease lookup > > > > releasing at exit. > > > > > > Please split this into clkdev and non-clkdev devm functionality. > > Allright. I'll split this to two patches. > > Definitely, please note that clkdev is separate from the common > clk stuff, and is actually maintained by a different person (me) > although I currently defer much of the review to the common clk > guys. Right. This clarifies how clkdev is maintained. Thanks for letting me know. Is it still Ok to do these changes through linux-clk tree or is there some other tree where the devm portion should be submitted? If so, how should the dependencies be handled? Br, Matti Vaittinen > > -- > RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ > FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up > According to speedtest.net: 11.9Mbps down 500kbps up -- Matti Vaittinen ROHM Semiconductors ~~~ "I don't think so," said Rene Descartes. Just then, he vanished ~~~