Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932881AbcDYPsD (ORCPT ); Mon, 25 Apr 2016 11:48:03 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:59446 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754783AbcDYPsA (ORCPT ); Mon, 25 Apr 2016 11:48:00 -0400 From: Arnd Bergmann To: Viresh Kumar Cc: linaro-kernel@lists.linaro.org, nm@ti.com, Andrew Lunn , Jason Cooper , linux-pm@vger.kernel.org, Rafael Wysocki , sboyd@codeaurora.org, linux-kernel@vger.kernel.org, Gregory Clement , thomas.petazzoni@free-electrons.com, linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth Subject: Re: [PATCH 10/10] cpufreq: mvebu: Use generic platdev driver Date: Mon, 25 Apr 2016 17:46:53 +0200 Message-ID: <5536968.ADFL5hRmGD@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160425152914.GI6104@vireshk-i7> References: <17150729.NF4MViUffk@wuerfel> <20160425152914.GI6104@vireshk-i7> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:EvUTq+qKMN4/oDedL2DmrB2WfJ2o+FnvwFmw6/GGJtsH9fxh2Mx nm8+eUws8ZzvtLQ1YRzTSvOaOmVMClnc6UQBw3IlRFeoGXuE05D1vo07WiiEYmk+P8A/S1J Yj3ijQuiJYhHrZqZSuRIcyP+p2QfbxFo+cLJK8/ch80eqFQhNHifnNYqqS8TDuAjsBS7dnK BycwYPHM5F0wfIU57shDg== X-UI-Out-Filterresults: notjunk:1;V01:K0:c/9iuGy+1KA=:bJb1jL27LcFfzB/qQTwGsn KeUhTTbbppIegfF3xb+AvT4hI7BOXnkm4WtrS/m8NBRn7b2IO5w6kve593hg7VEGHjxngPC+I hG4sa8lr92hxIbt1BOfRK5AejLQwmPickgbmLb+9H3nE88GTWoWNkrXMD0/ria55iMpP5/BHV 8Cl65xQHt+XGf9yzbGRO951CuDm9PDmEnpMJfrbedNgynnLcijnJe1e+pkAKHMp5bTdsSGSCA 6dbtomFUcX0VyK88yjQT9YAL45zleSxBIVdlmbS/mQxHj60R6haLiJsULYHSvGexeN+zyxUzR Zxatr9SmkHllsbiVyG0z2vDRwJz16lKjULDvmvJi+WN//PgUT+wj4EOhew47frydDoQG3e6uW ZyuVadkD9RVSVpVppGgGxB/4NJtTq+GuCd3H4iaHoUv8fQxPbUEfqXj+ShuNzlytdSZbacr+A 3BFZtwQ3dJGlHWUVYN4yDSO1GAJhCnK8OGnoFHEMvtsKqGkqmJ6IpCmroaCQsum/25FzfN3Ly LSuqcgzTc483r+QrOhWUpjFb9j5EWXpF4nGYweXmV0HNYjeMhlpRbypxPGdl/UOV/Q5gEUxKi 9BUiv5oQpty6lSgW2a1XeXBdJWDkjPTuFz2nQH84yxIYKcuzZX1xi81hL7wv1l8A4dayvgFZ2 5mz6+kXnYnMfgL1D0mYAcktuFMpnuN7VLHI0EAdLqHapXkNmBc94XDcOg2iDw++muS2nqOZCZ 6Qn1yZF8rQJBfFoL Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1714 Lines: 39 On Monday 25 April 2016 20:59:14 Viresh Kumar wrote: > On 25-04-16, 17:26, Arnd Bergmann wrote: > > On Monday 25 April 2016 18:26:05 Viresh Kumar wrote: > > > On 25-04-16, 14:53, Arnd Bergmann wrote: > > > > What are the downsides of moving armada_xp_pmsu_cpufreq_init() > > > > into drivers/cpufreq? > > > > > > More special code :) > > > > Of course the special code still exists, it seems more like neither of > > us wants to have it in the portion of the kernel that he maintains ;-) > > Hehe.. But after $subject patch, we don't have any special code for > creating the device, isn't it? > > > Maybe the mvebu maintainers have a preference where they'd like the > > code to be, they are the ones that are most impacted if anything > > goes wrong. > > What code are you talking about? Initializing the OPPs or adding the > cpufreq-dt device? The first one (or whatever is left now in that > function) can stay anywhere, even as a cpufreq driver. I was talking > about the fact that we don't have a sequence problem to solve here. My line of thinking was that the armada_xp_pmsu_cpufreq_init() function makes sense by itself and feels like it should be one file in drivers/cpufreq, including the creation of the device. Even without the argument of the sequencing, they two parts sort of belong together because the cpufreq-dt driver depends on both of them being run before it can function. It's also the same amount of code, as you are replacing one line in armada_xp_pmsu_cpufreq_init with one line in "struct of_device_id machines". It's not really that important, just a feeling I had that it could be done better. Unless the mvebu maintainers feel strongly about it, just do as you prefer. Arnd