From patchwork Thu Oct 17 10:30:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176560 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp715492ill; Thu, 17 Oct 2019 03:31:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzKNwM6CPik3XF2jKqAQsdRFON7JDyO0q4j0AS/etd6jIS1qCefhCpOx9wLDrA/u78O0PG X-Received: by 2002:aa7:de12:: with SMTP id h18mr2900448edv.226.1571308280205; Thu, 17 Oct 2019 03:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571308280; cv=none; d=google.com; s=arc-20160816; b=znmtC71i0Qzh1H8EPxbF9vY4jv2xmXrylRylUJBV9Yqz4/G2SEJg1ClTV3K546HzgX TRD1qDfFsGSk8m9QG1P2jGT3Ast/yHMs8x4DxZ4XXy2AHaDAbJUvVwMoDJfGjS2yhM3P KSZ8lDobUwDu3AR+e1KJIP3uxXZvhTiYO4zaxEypvgtLUiFTVbU9PCRVhsudiQF/A4Yw qbwiHhPWH32oa4+iYLgvIYswyRqdLK6gILPkOit/RLStw8ZnR7/7O9mWhN/mllLam011 OJwiBhxcrUPcSWSpL0RRrOnF7Ky2/DLZh2e09+xlW1LaicBjUDKD55x+qxF3cmmodow3 gJ+A== 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=yAYxsDoF1xODxjQtRc8reB4aVCGjGyEgdApmFBnl6Wc=; b=MewGpEZd43n89gRWr3T2dcHFsiYwEhAotVLK0drGk3eqGgAHAGsCJVXY+q0DysMLXl 7hMDtARQDyOJVLQt/ua7L2Nr434VU53YqF4qD5n+iIj9VO9Vg7/pNFsxO520tJE/hQ9V tqLram14Zgnz6uSTL9a1WVwrllWMtjPT8WzKjLpMRR1rWLYhx24ZyFVPfm1jDe/Hu0Ge H7vjolZBR9iLJlDQTzHqpdSZE2nKsEcwxJnbfh63uwomqoGCe7uUSQA665sYfKJQiMZL d9Hkk0sHufUxjIwV3rPzizs2zRUgYiTRurKj8h+yFF0OvswLogCHfqEs7fxEsQcXzRTB bMcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iC2Af2Y4; 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 g5si1066524ejp.430.2019.10.17.03.31.19; Thu, 17 Oct 2019 03:31:20 -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=iC2Af2Y4; 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 S2501994AbfJQKbQ (ORCPT + 15 others); Thu, 17 Oct 2019 06:31:16 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:33835 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2501990AbfJQKbQ (ORCPT ); Thu, 17 Oct 2019 06:31:16 -0400 Received: by mail-pl1-f194.google.com with SMTP id k7so935849pll.1 for ; Thu, 17 Oct 2019 03:31:15 -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=yAYxsDoF1xODxjQtRc8reB4aVCGjGyEgdApmFBnl6Wc=; b=iC2Af2Y46Q48FdvGdaNCTJQWCORwnw78D049tRe8+wBCpljt9U7Qn95yg0fi6nJ24v HRH1hHOymiUJtnG/81nWV1WdomOj9Vb5eo+tknLXOXhbCPWwSJ1O85eOb6ZLWBfxZx73 nm6axiRp9TDykYVuVJT1+hVIe9CWVmg4T2pn7qlImdrTFS/00QfgYALSKkffpn3OebN4 lRBjq1HBr7CvUfdKaUTJnsEwJwCkZtDjPSpUt6I5Qclgo2OoGIEqD83dOUQDpiI2KEtm Gpo34FDCc4VGpwC73SzpFoFB3PgrToTo5wPbgo2tW7x4MD9ZE0RrD9GMRN+ad20Tg1gR sA5A== 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=yAYxsDoF1xODxjQtRc8reB4aVCGjGyEgdApmFBnl6Wc=; b=nNxWOWRnmEB1zkWB6UWaMZodxAiHsdQtQevxlVe4/9i4jExFLX9KkSm65uuC2RgdBl HzHsXPQL1mLMpU5EHI9SMRQXxkq2xK73fRk2WjeFCjjSCG4mGZlwrm6r/7jJoNkpZUyO p85bEB5L2aC5Rg9sZB3Vn8w7QUQqrVEbDK/D3uixmSPzeTkC8NCZeEo4Py9YlvyGKAuN RlpG31rt66Ntq2sWg0SxnwAed4jqY+347Mi6of61XpZflKc2PWwcUghMUI8LjZYgzY+w hcUEzhoOED9CKIEZq+lRij/Cq7XtEopfurGvd+Wv3vptr9ZJ7LtXfSioLPCv5QCx5gQl c5FQ== X-Gm-Message-State: APjAAAX9pb/CTDWaTncaWfS8Y8pYt0DVSsQVmdsM5FY6y5m7U9GxEU3R eWzRk9Pcs8UdO+QuLAKA6Fg2Ug== X-Received: by 2002:a17:902:222:: with SMTP id 31mr3300158plc.169.1571308274634; Thu, 17 Oct 2019 03:31:14 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id ep10sm14892051pjb.2.2019.10.17.03.31.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 03:31:14 -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 , Zhang Rui Cc: linux-clk@vger.kernel.org Subject: [PATCH v2 4/5] clk: qcom: Initialise clock drivers earlier Date: Thu, 17 Oct 2019 16:00:53 +0530 Message-Id: <5f1ca3bfc45e268f7f9f6e091ba13b8103fb4304.1571307382.git.amit.kucheria@linaro.org> 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 96a36f6ff667..20d4258f125b 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 bd32212f37e6..9b0c4ce2ef4e 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 95be125c3bdd..49dcff1af2db 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) {