Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6392864ybe; Wed, 18 Sep 2019 02:44:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwS/mUnaffpe4JC2nCTMwDBwS4Np7lcgdckRrGtTwYBkBh/pFfKx7Faa9vaa/caE67rlbo2 X-Received: by 2002:a05:6402:290:: with SMTP id l16mr6782847edv.178.1568799854842; Wed, 18 Sep 2019 02:44:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568799854; cv=none; d=google.com; s=arc-20160816; b=CTTOVL/fR+NU7tLH7Wu4CplRtGrrJLyX3X9H6rjnsYQ64k4vTzkJmtipJPqzFvD7kV uQK3GYIP9/V7Aa8WJfpcmCo9QCqlvgZ5WHquPwtHu1/NfCnP3JMWgCOIhnLUGEJeTEVT MnXREkFWTLnQ+BQddGGwLI9h7NJWufuDeLzGv1hc3HWJUvpnRSQnY+TLFV/TOeSopg9/ nnlyVq9Rvc8ErYynYRpCzsGzgrSZuCt/RWTDomZspes8gJWW+GY6HWXsMKX4NeTfAwfc klgm8mT/w2rmdTPOhbxg8pTrcyal0/ZiO7m839E0yBHZj8tge02hzf2DSMsUvP4oqqlM JAig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=wNoOl7i4fvXvG+Gg0ibZT3g1bm/KoPObHUH0LJsdv4A=; b=Ws6UvP0EuumXbALQsZmln2LpeqYp0BaDjOh6SlSk75HD+/Cdz/RjfAT2fFgjGN6+x8 jwZeCOnYbLUrEFfeRZd1oFLUddk3Z9V0qdQ6I7gQFxtI1Q09g72Spoij0p8TipT3ypJX PqgBJi4Y3sJQHuADpq+95SRN32GrhCuM7CqgZKPLI5mxanGAwB+JEcPmxulKz/Wn8f/N Z29UX9RXASHmAPC6Japu+oe8NGy+G6WXKKw0DOczrIpVW4RBasOqbyPz5qEZ0AbJ4Sgy MvABI+6HpNuC4TQN0K29pA8r0p9RtrttsN3Np1mPTHv7Tt0TKJizks1XeDK+ptvqRnuH uEsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fi10si290733ejb.365.2019.09.18.02.43.51; Wed, 18 Sep 2019 02:44:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729283AbfIRJRz (ORCPT + 99 others); Wed, 18 Sep 2019 05:17:55 -0400 Received: from foss.arm.com ([217.140.110.172]:37982 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726902AbfIRJRz (ORCPT ); Wed, 18 Sep 2019 05:17:55 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AA099337; Wed, 18 Sep 2019 02:17:54 -0700 (PDT) Received: from bogus (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DD1303F59C; Wed, 18 Sep 2019 02:17:52 -0700 (PDT) Date: Wed, 18 Sep 2019 10:17:47 +0100 From: Sudeep Holla To: Viresh Kumar Cc: Amit Kucheria , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, agross@kernel.org, tdas@codeaurora.org, swboyd@chromium.org, ilina@codeaurora.org, "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , linux-pm@vger.kernel.org Subject: Re: [PATCH 5/5] cpufreq: qcom-hw: Move driver initialisation earlier Message-ID: <20190918091747.GA18121@bogus> References: <20190917093412.GA24757@bogus> <20190918090938.b2fj5uk3h6t56t2p@vireshk-mac-ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190918090938.b2fj5uk3h6t56t2p@vireshk-mac-ubuntu> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 18, 2019 at 02:39:38PM +0530, Viresh Kumar wrote: > On 17-09-19, 10:34, Sudeep Holla wrote: > > On Thu, Sep 12, 2019 at 04:02:34AM +0530, Amit Kucheria wrote: > > > -device_initcall(qcom_cpufreq_hw_init); > > > +postcore_initcall(qcom_cpufreq_hw_init); > > > > I am fine with core framework initcall pushed to earlier initcall levels > > if required, but for individual/platform specific drivers I am not so > > happy to see that. > > > > This goes against the grand plan of single common kernel strategy by > > Android moving all drivers as modules. > > Its been long that I got the opportunity to work on drivers directly, but as far > as I remember (which should be incorrect based on your reply) we can still build > a driver as module even if it has some postcore_initcall() declarations. They > will execute at module insertion. Is that incorrect ? If not, then how is it > going to affect android effort ? > Ah no, I am not referring to building as module. As you mention, that may work just fine. I was referring to timing dependency during boot. The idea is minimize the number of such initcall dependency. They should all work fine even as modules and should have least dependency on initcall sequence. -- Regards, Sudeep