From patchwork Wed Sep 11 22:32:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 173647 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp1341739ilq; Wed, 11 Sep 2019 15:32:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxG84sUXOiN3phpAhAMQ68my0pLXCmGXrDD+NEDsZHV8wrcLgf4iKBZqdxZKDs7hNRH+3uW X-Received: by 2002:a50:d084:: with SMTP id v4mr39751186edd.48.1568241177468; Wed, 11 Sep 2019 15:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568241177; cv=none; d=google.com; s=arc-20160816; b=Au8ET6Iz8mm3WN89HJE4MigYY6K7xpWJ+6Vzrggs4xGRCua/O/FWKRK6MNnC0LkzqS Tg6qPZNIoikD0u3DOeXvcOxMjU6NnbgaA687XVbQufkTKhJVSaxhbss+pKSwLRFfWWi1 YYbjVrMijRrNWlfhqZxlApOOZddOpL1K5urgMh3lYdjW/nA7Q7WMrVhhV3mjFhbI5olt BJSjcoaLdAuIgCV8fXYEYtE3CE2sxuue3kgPVFxxlRnSX2GBf7a7Typr17aW5o24CAtQ +R3CCPxWpLXXL5wTKDhflwHhFK0aIh4T+fgsEG4YVHd7alqRdXLK7VEvTa7jvZxiptEz klQg== 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=YaAXQthtgG2MBssj57BLbE1LV2recijh1io10AfY2RI=; b=GIQ/fO/DD6Mmo4b6vhZa46Cbz4LGkVdzTqIsLHTNG3/x0rDtqrZORt1+3WJCqAqmMq QE1qJhi4f1pmArumxauw7cRFqbrhn/klnxq5aMKfpHPOEx9Q9QRNMziTeL5h9dwOZp97 Ln6gotJul5mFadSeoR3sYE5X8Dx6VokAql3VufgFD3OdotRn2PlpfXmr59QTUu3Y2g2B 1Dsey5nVJyCCS9ASz74fS3xQt+IV48B3erSHusDow4/OUZ7BiqqwvjYiVUNa3dez1XNg ZLJXj68LpByd6N/IeFfKFDjjclg6rWlOJI/AmUY6Oo88PLuJYBFVeHipB9zeqSfkpL0J HnAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SoIVvGxk; 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 op27si11099508ejb.163.2019.09.11.15.32.57; Wed, 11 Sep 2019 15:32:57 -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=SoIVvGxk; 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 S1727782AbfIKWcz (ORCPT + 15 others); Wed, 11 Sep 2019 18:32:55 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:45421 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728521AbfIKWcz (ORCPT ); Wed, 11 Sep 2019 18:32:55 -0400 Received: by mail-pg1-f195.google.com with SMTP id 4so12247460pgm.12 for ; Wed, 11 Sep 2019 15:32:55 -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=YaAXQthtgG2MBssj57BLbE1LV2recijh1io10AfY2RI=; b=SoIVvGxkGwPW0vjHAhCUlzzpEn9xEJSfQSimpj9zTEt4BwHqSc4RQt8PGb7NS2wwQI MhYocNB+PZRwHRxD7xWamn9kaMnMMNFyQZ/PMgAaSchdpk+KCJW4iF/a0camj1lHBNXe gAk7NUHUZSqSZqg8z09FQ1X/wB7/Qlem15ix4Cv5gqYobvooPwVi5Ot7F8W+6dVkNeqZ Du5lvxl4asoSRD8w0hTmhncU1ixJHcJIt7eQzR6/4dC+b69dfFMpDEwlLqkCRNZF6DzC 66/gLhIIs5Mg2jNLNtKwcpyS5EB4onIogJxyGEVadt2e5jAZROo+0KdsR7Sb7zzG9mvR hWeg== 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=YaAXQthtgG2MBssj57BLbE1LV2recijh1io10AfY2RI=; b=ON0GYQ15EE9FTRdEt2pXpcLXT3JuRxvY2KMZEF1Sz6eBqRtrBQFasFMQBD9DTQaY7t AKoJhjWLmhsVYsCc/hYMKOwbrm4JtDgoHxrt4rjuw5yxKlSFo2rKA/H61GqqbtBqkqlM wlc4imApERycaAhFaQxpUhqthpYC2ob7El1kX7g3Xk9uZqgjA/1QG+p7pgSBKk5ICeAz dqj306iqHRi08z9KP6rGdlVcRxivkdU60pY/NR91UlpgBgHN6xOD20hRLXZGRCbCGlbT VHAuqANiV5H1N1QTG/aOgfeaeuNPiFsbq55aIoffD1FnoiOjrSKXXI9rxpjUPgE8JCx1 Jlyg== X-Gm-Message-State: APjAAAXbgwixEG8nMPWGCBOh67KqF1IKsJJHWSzvzR7pzpt8HaQswyKu OHg8L2Q8ke/aXonRUPlViR2omA== X-Received: by 2002:a65:51c5:: with SMTP id i5mr34983569pgq.312.1568241174545; Wed, 11 Sep 2019 15:32:54 -0700 (PDT) Received: from localhost ([49.248.179.160]) by smtp.gmail.com with ESMTPSA id s13sm23641511pfm.12.2019.09.11.15.32.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2019 15:32:54 -0700 (PDT) From: Amit Kucheria To: 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 , Viresh Kumar , Zhang Rui Cc: linux-clk@vger.kernel.org Subject: [PATCH 4/5] clk: qcom: Initialise clock drivers earlier Date: Thu, 12 Sep 2019 04:02:33 +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 --- 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 c3fd632af119..efed4e9d11cd 100644 --- a/drivers/clk/qcom/clk-rpmh.c +++ b/drivers/clk/qcom/clk-rpmh.c @@ -463,7 +463,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 29cf464dd2c8..50066a6e99aa 100644 --- a/drivers/clk/qcom/gcc-qcs404.c +++ b/drivers/clk/qcom/gcc-qcs404.c @@ -2825,7 +2825,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 7131dcf9b060..13677c69932f 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) {