From patchwork Thu Oct 17 10:30:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176559 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp715398ill; Thu, 17 Oct 2019 03:31:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAAWBWwaOBEBqbaGGlDQFKFvZ2TX02DuVRZ1SOA0xHYWrOofSrFR+4MhRrUw3XWKAnTV1x X-Received: by 2002:a17:906:e2d6:: with SMTP id gr22mr2674643ejb.160.1571308274833; Thu, 17 Oct 2019 03:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571308274; cv=none; d=google.com; s=arc-20160816; b=M5ZixXKj0TIMmtPlrrwnOe0d5mG6Dq7w66L1I+6m2J7qg72/gtsudzTRaAOb0+Wd1E CexwxeXWNruP5f+EfrjKRX4/6Xq+7YzArsSMtU2FQ7gOfC3XgUuWfqQsVeSfvNMSkvDF a8r3tbwbL9wHxIfOKZmFwy/B9NRAiBjI4+GyKakKKJeYbyk9GpwDZVkYdUQGIAnBntW7 01Eq0lLrzYW+SnRLcdvoWcUfCVbzF2LI5bV5wFJN8xZbzbaSBWXXgwhMgcnPeoVoZciI pxi5nRfysZaded3LrFhtf5t+bxrL8h5LXIe0Yig8YjX+wrltAiorssOOQ61nrpRqj1v3 ASDQ== 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=Dxo5X+E9Ol1EaiMF1ZycTVksoTfNCn6yYqPoCwK1ut0=; b=WJo4vAg0HCtwo1kCm9m18Ka4BJAT6xLgUy5nFYKqFRFcUiDctoZ5nEaW0FrhIy6lMC sTHv32MroUS9E5QvLxC7RE5UsV27R4O+CDlBNuZmPkD68LQR2bXruM4v0KAEuoT0r79i U5ArYf4S92jUS0acdnAv7MRUFiTm2vK8kWqHme5scgMTKMBeKwZYyUolyNN4pjul+Jwm DbJms2Ex/dZIymghMMG8UMdx7xzGrej2SEO+Aax8/9lKs5e3dSnyFtS9dcuuHUU+MQWO wZEEA1/rclOjnv86EkqpxfU2hgWAw/f6XQNuCOgKXy+rUjYUE+BojcBLH0C8y8PmQRpn G8MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KW3BHAnA; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 b42si1300414edb.11.2019.10.17.03.31.14; Thu, 17 Oct 2019 03:31:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=KW3BHAnA; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S2408888AbfJQKbM (ORCPT + 10 others); Thu, 17 Oct 2019 06:31:12 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38212 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408874AbfJQKbL (ORCPT ); Thu, 17 Oct 2019 06:31:11 -0400 Received: by mail-pf1-f194.google.com with SMTP id h195so1375480pfe.5 for ; Thu, 17 Oct 2019 03:31:11 -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=Dxo5X+E9Ol1EaiMF1ZycTVksoTfNCn6yYqPoCwK1ut0=; b=KW3BHAnA3ZG/qmHR83tqDTQoBB/pASsfBUD3L7y/uxYm+ylMPd0OKaWIpb4n0HzS/E EYaeSCe6isd90Rcp58Y07VJDgZuK3eHJKMz7kN0aPgb1CVtG2PUQRnIBtgn9h0C+VMHl y6luwu9znrRZkMmbDCVZ4LiOF3bn2MYxrDzO/eTQomXyZUOXguHHFeG6RQFxPgekfZ45 TGnUosAC0nM0oAlfv7cac1ilKsI3ruMycGhZdpGypWfVrt59uIWbTn+9nQSt4VeMQfvx zQy1fJJSGruXYt9u6NOfcFgvkIzkFOHEA2j9rjYMv+gWdaHHOSDufQC2DJfYe4+Cc+va WhPw== 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=Dxo5X+E9Ol1EaiMF1ZycTVksoTfNCn6yYqPoCwK1ut0=; b=kK2bukskdLIXBbgIhBL2NlvWLd32zXz0URU4XF3Q959+5LZhxaHdaPWWfco2b+fji9 U7J3LlCr1Om4aZcnlcfdFYPfktFBIb9o2ewP9uwVQlXWkTZRiOuu+/cmHYI5+bICYmCR f3wZuE9KrsFtJJOUcJhUbqgH0tvrjoNL3A0TRhoAk9G5pxNhqLD81qQ7BmlA2VhxyI6N rGgIl0t0Auk/tf2Dm0ftPszAybtS8KQZJPMowYywCqkrFJ+PtPDUhTmjQQq+tBnmPxrc TrjjWYPsjg5kHidW50icqiq8HfHQwC7AQsJz2xUEx8aABOi9Eql4uxLqkxia96FHIFcT nZ2A== X-Gm-Message-State: APjAAAXJymw9sVNaUIdVrhOnP5cjVmIPTiwdWGNchjZdTqU/H46DKCO8 WE4FOYA8s0c1lZFGTKJWHRPFKg== X-Received: by 2002:a63:5b07:: with SMTP id p7mr3416921pgb.416.1571308270667; Thu, 17 Oct 2019 03:31:10 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id b18sm2153445pfi.157.2019.10.17.03.31.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 03:31:09 -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-pm@vger.kernel.org Subject: [PATCH v2 3/5] cpufreq: Initialize cpufreq-dt driver earlier Date: Thu, 17 Oct 2019 16:00:52 +0530 Message-Id: <9e2bce44ed6bf3aac2354650fc3bf5c43e2155b0.1571307382.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 bca8d1f47fd2..3282defe14d4 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 Thu Oct 17 10:30:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176561 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp715592ill; Thu, 17 Oct 2019 03:31:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaTn1ojMY+fqhuY7hUYVjiwWqiXYR1CZme6PZy/4G6quP23OKL4HUfv43QWUFBUA3wIFL0 X-Received: by 2002:a05:6402:21c2:: with SMTP id bi2mr2947588edb.8.1571308285624; Thu, 17 Oct 2019 03:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571308285; cv=none; d=google.com; s=arc-20160816; b=cIMEoJRNpDv97n7V8pVxoZ3mQCzVX9xsHhVagYA6m8AFoeQPWj1rWrAQAV0wpN2DbT Ad2bhL9pWwktBOCamSkBVnYn70m33JcdwGgbgezsjRfMSB821yj3xR/bFWKrWYCdlPlg eWSbKNpHu4zDHLME+naoiRwmxKsr48AeMhnhS4etOAo4ZU+3S8Km3DxPcZm9SGYpHkbf bnkIDbgBGKO2XyzIFhvW6IL5xHGlZTmE1ZiMHZ7ZYM6Tq5DzUOm5CQScDDH053lgDFQo w5+TvYgqn4dyDVc9wEkGQ3QqDtlP9RvmSDSKYD+7jMU+cmvxOd6+c6ML1foNvuoYIO6I 3a5g== 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=smRwPgvncTjnAR1YtPvLb1bA4/kxUscSlcxDGMtB+pk=; b=Gy5IoGAT5ZFjkMIYsmP1f9m1tzaTWECbFhElA2JkzGI0oseoCdQR6sxGOgnJ/uiM8S btkH7kh2CYsJikV/AYl+hxoi1gwsQPKlj3F4LHXB6VrqznmzHTgxzbKGXuIayQtI6QCR 7mEMLjX34PxoM724uPJCmUW3eixYfZGH9Q0v88gPtVpgcCzoqgl1l65fEH8HcF0HW1KB niseqnWZwmx+j81zTOHjLmpiZUGGfdn4kAgOP2gav35o3B4B7pGfIMrj6Vgc5lcQPzS3 CL17O0ICvNkedIeaGV8xmAcA5/vnGdFg+pxqiBJwVV0CE4oJjYKXDSNtfluEF7w4MMNa UyEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DDQW0dW0; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 t10si1241496edd.447.2019.10.17.03.31.25; Thu, 17 Oct 2019 03:31:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=DDQW0dW0; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S2502001AbfJQKbU (ORCPT + 10 others); Thu, 17 Oct 2019 06:31:20 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39035 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2501997AbfJQKbT (ORCPT ); Thu, 17 Oct 2019 06:31:19 -0400 Received: by mail-pl1-f195.google.com with SMTP id s17so922377plp.6 for ; Thu, 17 Oct 2019 03:31:18 -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=smRwPgvncTjnAR1YtPvLb1bA4/kxUscSlcxDGMtB+pk=; b=DDQW0dW0reHs8t1GXSVyT9VgUmlnBcjxefVEiiSkhjqDBKk6/6035Yl+3gAe3iREvz aEfAlmZCgqggMlR75cYhw+NRjIvUTX3lNVXQaue09BQetHpE9/mVW5+bwVYmASPpCUCg VMiBx7zjSopPB1lPhYghf7lylEASdwn+lDyZlX8eQoajYOkkQEjL3P0oebZJ6/uTY02u RcEl7YAv7sTaoQm6kcNNyFyUE2y6HJuT4r+UCVJLimmo39wSX5IPtjB7oNJvysjqpL0J OZiN61pd5RMvEfFfpAULYiMAeW0j7gMu9I9ZyY8z490J2vX9UEWcA1DdQBqobPtpq2Bc hM6A== 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=smRwPgvncTjnAR1YtPvLb1bA4/kxUscSlcxDGMtB+pk=; b=PrPFx4FFJ/gn0nwMwnJ2mD9/rG40oQOVjjq4wbFugrE3zHT2oeSdt4AjJy5/2PaOVh lrDM/UrUVBvIyeE1lLO1RK0UCA49bJVENG/MdcjeC01ruWeUxUJMWldqXC4LVwGORvJw Td+Yk8/VJKFUUeRQcILJmZ4kYtuDffn6llWbmOmqKTJ8ayqzpbBgPNxaeh26DCFJmxTh 3gTCJdqVvUfaLemR+M38GCoOf6gl1wGGDmMNPb0aDpCDgEe7tSNJuJucCrq5Gnwkw4d0 vlRwhfaHYt80SU45KzWpYJiBxTSWxJBiWH/xFGNNzE8o94SeIw9FkCGy3AnwPKl8ZVc+ rf0w== X-Gm-Message-State: APjAAAWfk9bz0C8p/aEk8GYyjtYdDHhDHF0SNbLiP37E8XoaVTOWNpSA Yx6bHcyQN+kSokI3qDJTowpglw== X-Received: by 2002:a17:902:bd47:: with SMTP id b7mr3278948plx.28.1571308278241; Thu, 17 Oct 2019 03:31:18 -0700 (PDT) Received: from localhost ([49.248.54.231]) by smtp.gmail.com with ESMTPSA id p189sm2040225pfp.163.2019.10.17.03.31.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 03:31:17 -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-pm@vger.kernel.org Subject: [PATCH v2 5/5] cpufreq: qcom-hw: Move driver initialisation earlier Date: Thu, 17 Oct 2019 16:00:54 +0530 Message-Id: <3468b8cf9c764ea139296ee149d33cd7a9d79e3e.1571307382.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Allow qcom-hw driver to initialise right after the cpufreq and thermal subsystems are initialised in core_initcall so we get earlier access to thermal mitigation. Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano --- drivers/cpufreq/qcom-cpufreq-hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index a9ae2f84a4ef..fc92a8842e25 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -334,7 +334,7 @@ static int __init qcom_cpufreq_hw_init(void) { return platform_driver_register(&qcom_cpufreq_hw_driver); } -device_initcall(qcom_cpufreq_hw_init); +postcore_initcall(qcom_cpufreq_hw_init); static void __exit qcom_cpufreq_hw_exit(void) {