From patchwork Mon Oct 21 12:15:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 177073 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3336685ill; Mon, 21 Oct 2019 05:15:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwu81P4D7acd9YXV4oTLgiHpigNcvOJKPFMyhuAQTmhgGQWIusIoW2edLN1CWsRtPq/0jZs X-Received: by 2002:aa7:c44e:: with SMTP id n14mr11515396edr.162.1571660146775; Mon, 21 Oct 2019 05:15:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571660146; cv=none; d=google.com; s=arc-20160816; b=va2nTHiABb995A+Oi1Xdwq5/xOTxSLcbbO36FMshe81HM5DPyindU+L8Yfrasd51CC QhUwGUuhh/9VcXO5wnH2ulL74TznnxCbOQIiAqThQ8D7973h9Oyk8b014zS17fR/r1LW Yn6lAPt7ELyUGTg68hcDKZFcoGtTulAJXuex9/ZyayKvD+N+8QWK7jGb0VRw7T9fDZ80 qXP90Ga+H8YBn0twNiMwUtW/NTvUWFYVvJMHrNdYmTUzMGjgZ9XkddBQUuOVbRCzfa+t W/Sf8DHtSrDDF+HT4rMwJj5CNdrvAACY0Ave3KlVmoN325+nEIvxV5MCmM86vanw0VVa mRPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=FyfRV5Js9+leUaktEVHjzJNcbnyCVZmNmn0rQoEZsq8=; b=RrjiVoUNRjHFUr+25o/BuN8gDgi+uNqh9HYXA1RpucKFLYoMa2somE+Me4QqViWfk8 TJKnU1/de3gB6fe2XUvoeJwNLUS58HlUjtIE69c1ZBw9xUD27USwSwicHlGpmI98fYmn PLvv3KuPSnylbWLObhsbOJMICoVLG4veA80E1A7MCOF6CXyGaocXh/GLWhajyt0hWRzE fEEGnLBFI2tPa531hnKoxX1W8r3fz0EuLKNFQOoyHqaSe/M69+6Qfb+iZcTLwpsXjm2f g594yq3nD8Z/TrADantYrnO0TOLkXIxUoTbc+sf+9prXpI3zonSK3N/o+l5WgHl6R4y2 1Seg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sS7o7iqs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d35si9431882ede.440.2019.10.21.05.15.46; Mon, 21 Oct 2019 05:15:46 -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; dkim=pass header.i=@linaro.org header.s=google header.b=sS7o7iqs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728709AbfJUMPm (ORCPT + 26 others); Mon, 21 Oct 2019 08:15:42 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:33383 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728667AbfJUMPl (ORCPT ); Mon, 21 Oct 2019 08:15:41 -0400 Received: by mail-pf1-f194.google.com with SMTP id q10so8352820pfl.0 for ; Mon, 21 Oct 2019 05:15:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=FyfRV5Js9+leUaktEVHjzJNcbnyCVZmNmn0rQoEZsq8=; b=sS7o7iqs+RScyt6BaNZLIHcYIvEhJBzm7BJzVTX38JcWinbzToZ3aJ5g9oqzVF6+LA pQKXXkGuulQiZqNUINoLALWG17assWoUELh6fWzIh/rgY8oufCDbqAqSPPFYuaMrRoCJ zMf8Rf2YFIkiY3PAL4K1+UaQ1lOxuO39kCeF6/eV9yyNt1zvc+ElEWiQT9jhtWtWm8+f ittQeVB8GHx5bZtd372Di6jzjY/sBJQB5v1gBtU8T0phCcDpGFasEJ7mtIjf33oQV84m ijB5jkjTmzw4ey3nhVsYg200l/pNeOnk9DIUPSf2yrkqE4Nn1EXptze6w7LvBo1+xQPc frow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=FyfRV5Js9+leUaktEVHjzJNcbnyCVZmNmn0rQoEZsq8=; b=qjY64gHp1IWtl1RAHdxqwiznTZDiIXlyJyhMLh0mAD052ToQMa4vIeP0VTKTBTw4fz 15utMc4rvhZ39zKa3pIuWkZLGP5EaYxS6WWn/EIxLwYM5t5PQZtLLLj5Y4TsRgcxyaRc yU28H5YJlWVYeFmTyfKpcorO4g1nyvYdMYyKuQm/kVYAeCRoi3/2UMstgW+Zl6bB3pjq DW8c2sroPYj88+O9+7m8UaO6g9oVnontk0OdVG6Ka4yUo4BPAGld6JHMvYHfmom37V/k XbqzKhMVAEbGwvDhGpdWM/o2ptProVlhjVQUGrQu7/RqjRpz9FO1BiPnM1OUk6j/nydn ot8w== X-Gm-Message-State: APjAAAUSLfu3A6TRdew5I99mTRqKGP+GGJ4OfYbhKOtFQLmHrWRGN8m+ QXPjtGbuI6kQkVQNhdhRnF/dygsjzeLhHQ== X-Received: by 2002:a65:68c3:: with SMTP id k3mr5280332pgt.247.1571660139404; Mon, 21 Oct 2019 05:15:39 -0700 (PDT) Received: from localhost ([49.248.62.222]) by smtp.gmail.com with ESMTPSA id 127sm15132523pfy.56.2019.10.21.05.15.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2019 05:15:38 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, sudeep.holla@arm.com, bjorn.andersson@linaro.org, edubezval@gmail.com, agross@kernel.org, tdas@codeaurora.org, swboyd@chromium.org, ilina@codeaurora.org, "Rafael J. Wysocki" , Amit Kucheria , Ben Segall , Dietmar Eggemann , Ingo Molnar , Juri Lelli , Mel Gorman , Peter Zijlstra , Steven Rostedt , Vincent Guittot , Zhang Rui Cc: linux-clk@vger.kernel.org Subject: [PATCH v5 5/6] clk: qcom: Initialize clock drivers earlier Date: Mon, 21 Oct 2019 17:45:14 +0530 Message-Id: <75ae9c3a1c0e69b95818c6ffe7181fdeaaf2d70e.1571656015.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Initialize the clock drivers on sdm845 and qcs404 in core_initcall so we can have earlier access to cpufreq during booting. Signed-off-by: Amit Kucheria Acked-by: Stephen Boyd Acked-by: Viresh Kumar --- drivers/clk/qcom/clk-rpmh.c | 2 +- drivers/clk/qcom/gcc-qcs404.c | 2 +- drivers/clk/qcom/gcc-sdm845.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index 96a36f6ff667d..20d4258f125b9 100644 --- a/drivers/clk/qcom/clk-rpmh.c +++ b/drivers/clk/qcom/clk-rpmh.c @@ -487,7 +487,7 @@ static int __init clk_rpmh_init(void) { return platform_driver_register(&clk_rpmh_driver); } -subsys_initcall(clk_rpmh_init); +core_initcall(clk_rpmh_init); static void __exit clk_rpmh_exit(void) { diff --git a/drivers/clk/qcom/gcc-qcs404.c b/drivers/clk/qcom/gcc-qcs404.c index bd32212f37e64..9b0c4ce2ef4ec 100644 --- a/drivers/clk/qcom/gcc-qcs404.c +++ b/drivers/clk/qcom/gcc-qcs404.c @@ -2855,7 +2855,7 @@ static int __init gcc_qcs404_init(void) { return platform_driver_register(&gcc_qcs404_driver); } -subsys_initcall(gcc_qcs404_init); +core_initcall(gcc_qcs404_init); static void __exit gcc_qcs404_exit(void) { diff --git a/drivers/clk/qcom/gcc-sdm845.c b/drivers/clk/qcom/gcc-sdm845.c index 95be125c3bddf..49dcff1af2db1 100644 --- a/drivers/clk/qcom/gcc-sdm845.c +++ b/drivers/clk/qcom/gcc-sdm845.c @@ -3628,7 +3628,7 @@ static int __init gcc_sdm845_init(void) { return platform_driver_register(&gcc_sdm845_driver); } -subsys_initcall(gcc_sdm845_init); +core_initcall(gcc_sdm845_init); static void __exit gcc_sdm845_exit(void) {