From patchwork Fri Oct 18 08:52:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176782 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp557726ocf; Fri, 18 Oct 2019 01:52:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcDmMIwXf0vg38Vq2N4k82UkxdgBP1S3Xup0Wg1qvJWPKmdiGjo8RwOVGEPiQQlMzHwXoO X-Received: by 2002:aa7:d4d9:: with SMTP id t25mr8413682edr.76.1571388750336; Fri, 18 Oct 2019 01:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571388750; cv=none; d=google.com; s=arc-20160816; b=QFIayDMugRqjYbMh0iM+IqItAGi88+4R7oiYefpIeTcHn8Db1ogII0KqLeg7ARzJm0 fRMm+PRRHWs6wWkcj4veeNB62migmV6flesDQBxK0bB8nagWaTPWr7+UK5M8OxReFFdJ +5I3ZSIa2dxlXDpZt4rpCN51eiDL/KZWjbpBl9o2CvxX8cRXOGKvSoj3Hky9VtuCT14c 1xYnZCP1LBBzDJuxv3T9zjcfSdPcNq8h9TBRZnztKtM9QoS8bKOJsOatFP6Ha/SANFGL vuyt8yc2lflQCdLgIEi761nw/nQ7B24LTh/FREq0sYwlRoqPO+6+5HMW32qhJf21kEOw moiw== 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=tSzJEpJmDmeHOSEU0I3AfQXPKpO46HQzH7+Mdke63aU=; b=bg1yKKWL1JnEy8Dcd1YILbdgVMKOVU+vtD5cVh7Fwm+7OpcurAP42nKWAtxCqIUcnD MXkuJdNKArxVClP0n05riDRsGxqrSmWCdqku2EJL4YXrgPMtAeQFqI9PGZZ4VCpXNE6J cG8iBjbW9ozaV4ooCtUBCk9UAxX58HoIXWfpzecwWppL2+gzyXzmRQ+jz888SLAqwB8c ZLEeK/0xnkCcatiTZbBlkqdpltdb0jVk7Aga6mWWI3LK7kvyHJ8MO1YZEaWO8N+U4HCe rRseyHpFcL/UAVxDknXPPtS3YD3bCVs9mlDJljZwyCxF/xh40MOaDE/FBGD8mpWIGL8l Flqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=npNq6UNt; 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 e46si3484336eda.401.2019.10.18.01.52.30; Fri, 18 Oct 2019 01:52:30 -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=npNq6UNt; 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 S2632963AbfJRIw2 (ORCPT + 15 others); Fri, 18 Oct 2019 04:52:28 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:47034 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394154AbfJRIw2 (ORCPT ); Fri, 18 Oct 2019 04:52:28 -0400 Received: by mail-pf1-f196.google.com with SMTP id q5so3434075pfg.13 for ; Fri, 18 Oct 2019 01:52:27 -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=tSzJEpJmDmeHOSEU0I3AfQXPKpO46HQzH7+Mdke63aU=; b=npNq6UNtXYpoaXJ3I7t2IdXdGe06e+rEdJhFxtv6H/2c3gYxsM311WsUfYe2YPeLXv 768UOT5TJugLFh5EWKwXxgf4gtmYK6e7eIRLahWH2yT1KURVAnfccBCO2XbYoIymgvLe oZst0d+algxp9nI8DMjO10QY+hsuBXYeJ6RYVcE51TeViEB0PkvV9xzBvleJJJZps71V lsDlm3yKkeYTjOg9cL7X6UdsU62Tc0D0PP1k+7cqUcXlI4ONOObK0fbVD9B6cNngIhZ0 kSh+IrH7TnmolNGlzhyO0VOTLYEfDqPxcS8iRqahIyPJVRFKb6+MQ/gJ++/MrcAHG6sG aDNg== 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=tSzJEpJmDmeHOSEU0I3AfQXPKpO46HQzH7+Mdke63aU=; b=FugD+gXBB8wKkGrqO/UjOljUa8ZPzqArGBwRTpviX0eeEgMwpatuv1V7UnXG2lFvKM u0hBSfZo27Fvxpy5JEPgAlrbFF5ckhKk2CZXtB2AU5RlDBByVTwSWfAdghB78y6Suyyl TjumaBF0Cz62w/diTK3iDksOPZLV6N9Wa6DoqJKVv7h5sc8EFwTI2zg4hW4Hbb9Co0sb QKf/OzWO/uO+C9ODW7p4MAZYTbOhA31ZakMsWSeldByXs05lm9feALQgqAAtpH6qTlAd gbJ5pay+RPjANll86HHSdTrgW2nyq8a0fA6yeqUlMI8+f1fR9e4yC3QEXsmRn3pGY1Qz KOJw== X-Gm-Message-State: APjAAAX/B1xh+fkycUuBXDfxGVN9oZNVs4ybBd7OaC1dULomVkmCgx5L 82JjcnrYhiYtCDfDFcH4SbJpWw== X-Received: by 2002:a63:6b0a:: with SMTP id g10mr8500894pgc.296.1571388747372; Fri, 18 Oct 2019 01:52:27 -0700 (PDT) Received: from localhost ([49.248.178.134]) by smtp.gmail.com with ESMTPSA id x19sm8025248pgc.59.2019.10.18.01.52.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Oct 2019 01:52:26 -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-pm@vger.kernel.org Subject: [PATCH v4 4/6] cpufreq: Initialize cpufreq-dt driver earlier Date: Fri, 18 Oct 2019 14:22:01 +0530 Message-Id: <66d8ae593ce7936a5f492d0c6855c1ac225b64ee.1571387352.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 This allows HW drivers that depend on cpufreq-dt to initialise earlier. Signed-off-by: Amit Kucheria Acked-by: Viresh Kumar --- drivers/cpufreq/cpufreq-dt-platdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index bca8d1f47fd2c..3282defe14d41 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -180,4 +180,4 @@ static int __init cpufreq_dt_platdev_init(void) -1, data, sizeof(struct cpufreq_dt_platform_data))); } -device_initcall(cpufreq_dt_platdev_init); +core_initcall(cpufreq_dt_platdev_init); 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) {