Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754895AbcDYP1Z (ORCPT ); Mon, 25 Apr 2016 11:27:25 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:55485 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932511AbcDYP1X (ORCPT ); Mon, 25 Apr 2016 11:27:23 -0400 From: Arnd Bergmann To: linaro-kernel@lists.linaro.org Cc: Viresh Kumar , 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:26:38 +0200 Message-ID: <17150729.NF4MViUffk@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160425125605.GG6104@vireshk-i7> References: <6893237.FoNPbfW3DC@wuerfel> <20160425125605.GG6104@vireshk-i7> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:OgH1HLadyVvF2rRNwyV8LbPrI6UjOfAIARyzvh32jJjTjeuxE3E wOCov9vY1a/VWNWXVNcmCf3WB2PYWdwsrjZaL7PkSj3/Onrbwjx0WaHE2gRmXHJXGOmwbiG Z0WuiMblqK1WHiXKAF5cRBqESWo7dFV9GzW+PEQJnWwxiPjZsP1dJk4p7RLF6aqVDzP+cjv CcToe5u1FzuLHtDYDybNA== X-UI-Out-Filterresults: notjunk:1;V01:K0:rhHUQS5pgmU=:CopePe0FUoCfQsZt5aLeM5 qqXEg0+r1fEaw05/IsqqWkKXhp+y2lVFZnANZrZAVpeE4Y2hJ7NXs6D/17d9eJReW0yl9gYfd NQz+bQfNQFtJZnvu2SUQqWyTdLzI6MKt/NgDAOvBP33t8uuC2/WgRc8MVtC3SYy6Eno+olAWd 0DLjq5UEJ9EeYZhcLA+eCH3MKE03ji4Da0tR7Is/ILttBMnr7QblrPJ6LSUrlyO8i1hWHNu5p gWqtsNP2F4q6SM1thbyjxr7Tmjq+ocdx5xl6dJugG9n9CaNqh3XIzmvFjlekR64l+ihYh8QzL p5rzrcHtZc9g5ZdLtqbddKrmPDFa0ZqHYSyibOFmW/cO2R3m6B0Jht6dGLHviDxFefz+aNwA+ sKL06lgTcZR3rFrVEvuN19ZeOPkWTlRwTrENENZ+OG4KB08Qbs/LX8pVz8BA4GFUWlBYzEMM6 3DtLkxq8xyX0nYZj+S5Jk26qSAhAwY8sPI/gwTGajvWYaXYE3ETWrk4H1pVQ7XZDBobIuqXFW QKBLbOJBlTeDG0zQVZ/etmFR1bwlWMI382PPJ0+FMZBCAOVBGZ2XTWNpNNfectwf6aoA3c0OB UfeJr+miczMWyM1h5pjHldyeZJpx3T4P+N0TdFml64xQ1Cl0KOe07J6vssLiUbpXJefOcQ4Gu BgzsfcA79mQ5FDoKgGTNq20k6JNWbW+g6Z0WpnDIDzpdxgCKn9/uEXYOZ83YeTsBP4VyPiAfq D1lcir6uvQVlxCzc Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1476 Lines: 37 On Monday 25 April 2016 18:26:05 Viresh Kumar wrote: > On 25-04-16, 14:53, Arnd Bergmann wrote: > > On Monday 25 April 2016 08:30:41 Viresh Kumar wrote: > > > I realize that the ordering is fixed through the way that the kernel > > is linked, my worry is more about someone changing the code in some > > way because it's not obvious from reading the code that the > > dependency exists. If either the armada_xp_pmsu_cpufreq_init() > > initcall gets changed so it does not always get called, or the > > cpufreq_dt_platdev_init() initcall gets changed so it comes a little > > earlier, things will break. > > cpufreq-dt will just error out in that case, because it wouldn't find > any OPPs registered to the OPP-core. It *shouldn't* crash and if it > does, then we have a problem to fix. Ok. > > > The other thing that can happen is that armada_xp_pmsu_cpufreq_init() > > > call can fail. In that case, most of the times cpufreq-dt ->init() > > > will fail as well, so even that is fine for me. > > > > > > And, so I think we can keep this patch as is. > > > > 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 ;-) 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. Arnd