Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757853AbcC2TqW (ORCPT ); Tue, 29 Mar 2016 15:46:22 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:56612 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753903AbcC2TqU (ORCPT ); Tue, 29 Mar 2016 15:46:20 -0400 From: Arnd Bergmann To: Viresh Kumar Cc: linaro-kernel@lists.linaro.org, k.kozlowski@samsung.com, kgene.kim@samsung.com, heiko@sntech.de, xf@rock-chips.com, linux-pm@vger.kernel.org, Rafael Wysocki , linux-kernel@vger.kernel.org, mmcclint@codeaurora.org Subject: Re: [PATCH V1 Resend 2/3] cpufreq: dt: Add generic platform-device creation support Date: Tue, 29 Mar 2016 21:45:53 +0200 Message-ID: <12972545.Mi9sHiNJpR@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160329163649.GE14322@vireshk-i7> References: <5412084.gVvuDFzkvo@wuerfel> <20160329163649.GE14322@vireshk-i7> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:L+TGJeR0cMPhL5FeJkHZ+0R3go8oA21c0C8g6F8wzSJZDvbEZOi OTpQy5zm3IWtxTanTDvi73m50m8PU3iNXKvujQvtG0/qEVLigsH8mIPF6d8OqOMJXFx4PFb 2yxEOq1LiEm0t0c+C8+sTb+OAoRdnXivSEqs0FT7wY6SdIRAeYpb0IC6z+L2aCG9juTthFI 6irnD9UyWS/dOfxGR+aGw== X-UI-Out-Filterresults: notjunk:1;V01:K0:XLdsXvBHvhY=:CK79BQzaRh1r1uzgBCovxX 4wn9ozWocDyKxWDbB9Fc57+d/yl5g2oVN1wnuWK/AK1oy2sEbQAt0O6LYfW62Fo6Inr0rzIAy boT2NByPvAGMSNTP0djAM5fSKLDf8Ngyp1wr7e41crLbgONj3r/tDrZd4RBVvjF2w3aKa7s+P ho09okpXd/QEI2Nel+A8z/SrPH8D048mzsJsvCF8E9TBKKTZknJuzEmQG/gFGdKAtWuEBuXMi ZLZ/pmgtTfTtpRLZgEfx+Q6NNaOqgaiF+0z5WNnArcVkODKmHLabVk9hCWHcJ4QeVx6mhNu34 yqCRKyKf8K5Jle0OAR1MIeiB33Q3jo4DV1pPOEsn6Q5sUhEHLhXGiSv1qHLLvX5ceklXG5Tae IIL99bkJvIAUCYefOnPqjV71Obcwmo8ZeZDjG+IxGaqZZjytVpMDyKdFUQxx3DQqTtSf3oPUH tN5sATmKxpBg0+okfj1PTNqldEbvbZmoPd9W/7e3Io3kN8TqOGSZYfXh70VtxP81Hu94pwfnU D5q3SvBUa/bZL/J/pRc2RwEUL7QDPy26SIY/2C9M8Ccf6yr1WHLxZBzrgEuC44kIft0+2S5Em na3p8r1GtgKELuvBnxfLrOoF/lMY7CQsYyu1KIZjn9AWQ3q1o4aW8jypEaMo4qgRPkaWDqtM1 c1OYz4R0u2J+yqK0zgtaTEs7xdJZCUxHxDZcR//Dr75cUkES3m6TY/knpxcBU8y8wL1KdWzY1 cBOGfkDOC9WMs+By Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1256 Lines: 28 On Tuesday 29 March 2016 22:06:49 Viresh Kumar wrote: > On 29-03-16, 17:14, Arnd Bergmann wrote: > > On Tuesday 29 March 2016 12:09:48 Viresh Kumar wrote: > > > +config CPUFREQ_DT_PLATDEV > > > + bool > > > + depends on CPUFREQ_DT > > > > The 'depends on' line is redundant as you always 'select' the code > > from CPUFREQ_DT. Since they are always set together, you can also > > just drop the new symbol, or put the new code into the same file. > > I would like to keep a separate file for this, it looks awkward to update the > driver for any new user platform. > > I added a separate symbol to take care of the Modular case of cpufreq-dt. i.e. I > didn't wanted to add module_exit() code in the new file. Currently, it gets > included in the kernel even if cpufreq-dt is selected as a Module, so we just > create the platform-device just once and never touch it again. Ok, that makes sense. Regarding new platforms, I'd hope that we could manage to define an extension to the oppv2 binding that marks a machine as compatible with opp, so we can just look at that instead of the root compatible string. Your current series is nice in the way it gets the hack outside of my code, but it would be ideal if we could avoid propagating it further. Arnd