From patchwork Fri Oct 18 08:52:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176783 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp557809ocf; Fri, 18 Oct 2019 01:52:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKv5/t5XIW7woALkl6FY2cHJTZ9hGopLfTiWLwwl5PhJTnEcDvADXIFWrjqfE712U8h27H X-Received: by 2002:a17:906:28ce:: with SMTP id p14mr7686086ejd.164.1571388755772; Fri, 18 Oct 2019 01:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571388755; cv=none; d=google.com; s=arc-20160816; b=U8M7Pq4uVKWFuG28G0FKmKFwxRaLaEsOWTCP6BxGAhSIZjasJwe9rdDe4Ok6MzEx6J GvcEDAEoe1EFVZeFY+J60f5lMN9ak0APtNeFDO4I5mWevQPVj2WrLX+5KI2fXPaDDfCb oqb984HMFMtNKZxgZLivvQiNMOeUTLJqZgokx6XT0SZGcfLuj6ct6AXFSCYDfa37Nmm+ BkYIpPwiaROxJtsv3VdGlkqRleAxKjVfV4mHBqRfEr3r6a2RDzyubeAvMfiBFo1sV7RQ YWqAZJDwEM7Sz/hO1xW7fGIJPjw0yXkpFif+3Zps73V+b4bv5qNSixGgxH5hlC58Ryeq qH8A== 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=yJmW/rmXm26duaDyfOHOFYteagLDpotWOjrp7D9YhkU=; b=K9a2WFXhjoBbKDrr/xd0gpGYxCLfHlu8unsGjz9455cGLgPylRGv9BR6iG6iUa+rX5 4UBux7Li3tTYv6ATu+ZNMnRFy119JsdMvj8fKWi8o0y3f2COSXog6/+uRR0LsLoQ6hQ/ z5lydsTBVjMzv47cTRIdshjBXFcd4h4+VN+Sx+p1is2Gbo2/VtOUWS1cwl2DaVWvZWYB 7Mr1za2aY4wXto4rihicOjpzTXXmIPsX/qag8tDWMlVSkEIWDDCFXatU6qv7CSnY6+7n 83fzeFdYaUsqtprO2YX/rlo92c/lHH87PCqqqVYViTOKBPt6Cv/NUmS0rOYu1ENcEqsD 4f5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VmFlhBj2; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 n8si2914905ejz.22.2019.10.18.01.52.35; Fri, 18 Oct 2019 01:52:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=VmFlhBj2; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S2632964AbfJRIwd (ORCPT + 15 others); Fri, 18 Oct 2019 04:52:33 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:37153 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2632988AbfJRIwc (ORCPT ); Fri, 18 Oct 2019 04:52:32 -0400 Received: by mail-pf1-f196.google.com with SMTP id y5so3450326pfo.4 for ; Fri, 18 Oct 2019 01:52:32 -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=yJmW/rmXm26duaDyfOHOFYteagLDpotWOjrp7D9YhkU=; b=VmFlhBj2FrlOil5Ro2+R3NNGOF/BhIIl/xJUhPKmdZjV4yp/3W9q2FDa07vgRUyBwe 77DJhlG/aRp27LbwoEJXO7aSur71B1sjKABDOgQo9FiuCPRzwhM2EGYDXppyDUskM2w4 oDQKuW9cziROsrSoLFPjze+hVNCnYlyglffqO4JyHA1qALqjQJkA+0jJJrI4srNoaco/ 6gZXAyhkxhS6Z12KgmQrt3Ou3COXNlyA9t3QoHgdbQxa9NpK4QKcBfmpGK0KTEp58xFY ZXoClqiKOSskIQt0qq3AHrxAfi3TvvA9L/F4nD/q4KeBj9rMfrxCDjL9eW/mmDmSOhtO aj+A== 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=yJmW/rmXm26duaDyfOHOFYteagLDpotWOjrp7D9YhkU=; b=G7GX/ayahopWRq6zxFpKQDLjozMnrxX6CvwI5K6Cq8z9krII5+wS/vnBT8bKMir0re M3qta3/ezbJu0TXZw+a7dg5oL5QJxv9jXJ2g7SMKhb+0Q13w6s1v/dUfIffyXL2hpfDi Gw6Yia3+aYbIR5a9tISPCR/PsWJ7Mr4Mrc2VlctFyyv7CQSMYsYtOpwY3aK7X+WJ4zfN Lz8eZD/wG1W98S1kRXOMKWkWU/AkiAW2OyZtAEpUqQjCQwBwokaUSgiXgstUaKgdcxJI 31IP3zrPRemNvzh8GxbNvtF3NuvIUK1xwPlyFdlhIHnCREdDLXDsXQwGk+G5If6vdtrp kYAA== X-Gm-Message-State: APjAAAUF3jZ7cDaHTNKpGh4E+KUF2EWqOi+nmtmm317flmE9tkwnnh/y zxocvrNaUsoFkG4C2aazqo0cPg== X-Received: by 2002:a63:f854:: with SMTP id v20mr8674374pgj.92.1571388751747; Fri, 18 Oct 2019 01:52:31 -0700 (PDT) Received: from localhost ([49.248.178.134]) by smtp.gmail.com with ESMTPSA id d11sm5278150pfo.104.2019.10.18.01.52.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Oct 2019 01:52:31 -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 v4 5/6] clk: qcom: Initialise clock drivers earlier Date: Fri, 18 Oct 2019 14:22:02 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Initialise 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 --- 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 Acked-by: Viresh Kumar 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) {