From patchwork Mon Jan 14 10:21:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 155423 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3489146jaa; Mon, 14 Jan 2019 02:21:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN5rX9KxQ35TIzUsfybHhUolQ1UmYK1d5uwmIvf9F2NqWbi2WtfvyG6i3/nhD/PNaHDufJ2k X-Received: by 2002:a62:29c3:: with SMTP id p186mr25059289pfp.117.1547461289651; Mon, 14 Jan 2019 02:21:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547461289; cv=none; d=google.com; s=arc-20160816; b=AsCOv+JrhZw40pIGYDqV+KpMMmP0vdT/oubpqO8auxBA+ZrALIyiZrJflDpbqnii0s hwhS2/hFNT+FOK6lRq11x1dY/ldw5SHqqFd+Y8O3JpKKa9SGXdMDTG6o1+7kHqR+2u2M qv27H1emM5xM1uNBtghYD/7PuMDnGh/hgrnQYkjgxbC/T3WXZnxTiipRpJrsqATtGWQ8 mtKULrV8eUB+cNghRHpd3+e0uGK7OFbEsa0K18CsK3kmJCL54Yf+HflgG9sQxqXAPivx XkSaeuXfFEE4f0yPSiz/akLouRYkdUSVqTrAk/ROnVXU2FCTn1dUf/cwDptHYlnQFUcq nxMQ== 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=CxA8ebFB4r9OLZ96bqgPVVsxsgvpcqnBcZSvktTXPrA=; b=RYDXZ8gwhZfFmXbMTdfEvkkhahztTEdFAxHfoQw5fwozoR5p6ZdQpOSErlhLNfNxhk T3T2VY6YgAoroFbeB5AQyatewT7j1WzrQ+6eb5nztiSKETjNVsErvapP9dGTX2q3QStj +h+WC/Rs9QTV0QSYuJCYDrj2PZNXFeW2ea9/J5NPgs3YxIsVKpGHljBREuc6mdST1Oun jZ73j1mFdebhkVp7N5lFIUHi44uIm3eql2vqhkEA4ceNcllCgFgMURqzXk1fQuTxXCpm b2l+sCZppglXQBgZDmbrDjcHmoTmO2sGiE4xtDHZaleqlwc+2EAZTk2IHlUKOmSfeixb IRwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BeXpdXPJ; 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 v7si32693plo.12.2019.01.14.02.21.28; Mon, 14 Jan 2019 02:21:29 -0800 (PST) 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=BeXpdXPJ; 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 S1726541AbfANKV1 (ORCPT + 11 others); Mon, 14 Jan 2019 05:21:27 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37642 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726708AbfANKV0 (ORCPT ); Mon, 14 Jan 2019 05:21:26 -0500 Received: by mail-wm1-f68.google.com with SMTP id g67so8216753wmd.2 for ; Mon, 14 Jan 2019 02:21:26 -0800 (PST) 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=CxA8ebFB4r9OLZ96bqgPVVsxsgvpcqnBcZSvktTXPrA=; b=BeXpdXPJWTOyjVfEKcnsuBOavIGy7gWpa7ZK+wmEiGluSGhnRKP5bxARIEJBza1dh7 6h+HXqgf8LjTMw+8387u5M56b796rChvDvvHl7Gw96PhKYFnajv8VpE9Xre7z6pjeSZ0 MGK+1bHBoivW1wC05g3MczWDHDCj8gSOdsvj0= 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=CxA8ebFB4r9OLZ96bqgPVVsxsgvpcqnBcZSvktTXPrA=; b=uQ5XwCIlnFMmPgmZIFX/8vOi7CO0/5YyNH/MrMbP/f6rQQhGA88HPIdNVH4DZTUxUI Y00nvztgGQjEEKzDGMowQrQVyW8IkaNF7mDTPdYSEvhfA0QdTOnRf1TaJcbaxwBeEoaA CeI5lTaYs05QJY9GOE4+3C6taA2XsIbxnv7oWXGiyoh4tGJjnWt33HBGl/bU0oMW1aWc jne2aRAth3W4c4ID56boFkRyn5C40ixoe+2Rv3CyXelHTxFhA39hUzaqm/5fGPtuh4Gz Pb81cSuU4LSivcsRN2NSmZFpPQWDm7jnv0r3M5gJF1f+RAKAJLMfKe3TkrHzUHnY0VhI hBYA== X-Gm-Message-State: AJcUukc3gGNUgqku04V5bc5eX2Mvjf6VynbvOywaB+gaV0yIPXaDZC4Y 30y2eYCiOgBWdY4zMxQjcYjfsw== X-Received: by 2002:a1c:ab87:: with SMTP id u129mr11368856wme.104.1547461285223; Mon, 14 Jan 2019 02:21:25 -0800 (PST) Received: from localhost ([49.248.81.155]) by smtp.gmail.com with ESMTPSA id d16sm56370701wru.52.2019.01.14.02.21.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 02:21:24 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, viresh.kumar@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, tdas@codeaurora.org, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org (open list:CPU FREQUENCY DRIVERS) Subject: [PATCH v2 1/9] [ALREADY QUEUED] cpufreq: qcom-hw: Move to device_initcall Date: Mon, 14 Jan 2019 15:51:03 +0530 Message-Id: <2ae45b9263f51a14a7f672f40da2193caf174971.1547458732.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 (Resent to allow people testing the series to test it easily) subsys_initcall causes problems registering the driver as a thermal cooling device. If "faster boot" is the main reason for doing subsys_initcall, this should be handled in the bootloader or another boot constraint framework. Signed-off-by: Amit Kucheria --- 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 d83939a1b3d4..649dddd72749 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -296,7 +296,7 @@ static int __init qcom_cpufreq_hw_init(void) { return platform_driver_register(&qcom_cpufreq_hw_driver); } -subsys_initcall(qcom_cpufreq_hw_init); +device_initcall(qcom_cpufreq_hw_init); static void __exit qcom_cpufreq_hw_exit(void) { From patchwork Mon Jan 14 10:21:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 155424 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3489203jaa; Mon, 14 Jan 2019 02:21:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN7pcVJmf1GFwsvrcMvdAuf9eYP6kAugm38NTgh4WL8qvVTeEySEQFxtiXfc+sTYajCgHA2m X-Received: by 2002:a62:53c5:: with SMTP id h188mr24289390pfb.190.1547461294093; Mon, 14 Jan 2019 02:21:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547461294; cv=none; d=google.com; s=arc-20160816; b=SngMAIG6lNMM+lOe/Z0OKdGV9VrCLZibIbhLQNquR/mEPGe5hAMu05aWqvCR8XBu2P +med4Ev0w8gRSj9zNMp3EILwKJEcE1vD05HGiAjP98jTOXrwb+/VVTkZfFlABS9IDdOX xq/opDHXMwZxW2L0kN3zbFz9fxa1t6dalqACH+qGUa2NLW0PQiI9fYXVsDDnePid0Spl TBFR+Rw+2/m/yMjW7ykRe8JfHI4TSZMaRPAZuCgzujCBgmL0LtH0lJq8kxlkzu5QwRqp Fzz3HnPigbS96af/LUBhNy1TXb60KijgQyFx6YIMj/72XD5DnZSNzenWpsYuCwabSl/B UNuQ== 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=9SBw2Z8hokpAYRi9yYWIqHgwrnBSoCdeIR1YxJHRWTA=; b=MDu+7EDZaiUZ3yz1sv1dB3MRr2sgUkPkv5C5CNK0j3QEpLdmFsV5fAeEj7n4CFoBp4 44vwqdnZUqM2bEIgJzRwyMBEYfiJ7NjKxC+aScl2XEMWRHBX7ddS+v0VsCSETiJ1yJGe oR9ZtWczw6YyIyTt721q4VTQBwAi5JrUVRln/dknWftDarfZhymnimYCFYteymLhsPKr D63M4CMnud1L/7DPH6zKZ/ELnt3oCBS0d+/AvSdeVjMsnKuv+aB3ac9owVzr182EYwrh MZUOhWeEYyqqhZRIQOGwXoZ3sti1d3yLngCytcyCy27hLI7JVAPjCsdMa4YtqFrhVouz x1OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RFTdFL04; 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 q14si27759pgf.47.2019.01.14.02.21.33; Mon, 14 Jan 2019 02:21:34 -0800 (PST) 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=RFTdFL04; 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 S1726733AbfANKVd (ORCPT + 11 others); Mon, 14 Jan 2019 05:21:33 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51739 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726730AbfANKVc (ORCPT ); Mon, 14 Jan 2019 05:21:32 -0500 Received: by mail-wm1-f68.google.com with SMTP id b11so8302122wmj.1 for ; Mon, 14 Jan 2019 02:21:31 -0800 (PST) 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=9SBw2Z8hokpAYRi9yYWIqHgwrnBSoCdeIR1YxJHRWTA=; b=RFTdFL04O0QYIhX0JBnUjQGAz3APxexoATMRsqvN4V8qZZgP+ccNCDl2usSW0Yp29y Nb5EVStf6xppuRlyc1Jov52MVq+vpMsi7C9J2BqcCfgcFJYb2kRtynQc1LyfZDLD/C0V bwJOnezzKErTQq8dgddkCsY5zpP8pCyaO5phY= 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=9SBw2Z8hokpAYRi9yYWIqHgwrnBSoCdeIR1YxJHRWTA=; b=S/hWzqWIx9/lQFJEYmjKr6InbgvegQKh9j+qojuirMEKavedlIDmoLjhxdzvn2iDxQ 2tt3f61B8MtYWKUTYC4uZ+zC86Kn0dhzuEcxW489ZchazacGhWZ0G7XIBZMbZYaRph72 WK+k2NFZr46Yq9JTlgKZ7b4zp2Mwtb9FYYeq+d+wB66SGbXY6LvLx+mlvwBr8vD81lmN YKBb1qtu/Dkqdm4vycOLTe+Tx1iWty5Fk+FZcecf90bYV0i5A0Kv3rTBxOdS8yVjHanu QJxvj/0dvHkDOBY0bta0Jjk1TFYGrV52TX196eHPMbPkDyor93R7HI7GnPMIj0CIlzhP 7upw== X-Gm-Message-State: AJcUukeZAlNaf/EztqetFIFdny5SbCBoLN7Bsj8waYe2m0TptH8/tsdb QcE3uMGmj96U4R1ErJCrXwAmiA== X-Received: by 2002:a7b:c5cc:: with SMTP id n12mr11292507wmk.149.1547461291120; Mon, 14 Jan 2019 02:21:31 -0800 (PST) Received: from localhost ([49.248.81.155]) by smtp.gmail.com with ESMTPSA id x81sm27364850wmg.17.2019.01.14.02.21.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 02:21:30 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, viresh.kumar@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, tdas@codeaurora.org, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, Zhang Rui , Daniel Lezcano , linux-pm@vger.kernel.org (open list:THERMAL) Subject: [PATCH v2 2/9] drivers: thermal: of-thermal: Print name of device node with error Date: Mon, 14 Jan 2019 15:51:04 +0530 Message-Id: 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 Make it easier to debug devicetree definition in case of errors. Signed-off-by: Amit Kucheria --- drivers/thermal/of-thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 4bfdb4a1e47d..08c3ccbdacf8 100644 --- a/drivers/thermal/of-thermal.c +++ b/drivers/thermal/of-thermal.c @@ -867,14 +867,14 @@ __init *thermal_of_build_thermal_zone(struct device_node *np) ret = of_property_read_u32(np, "polling-delay-passive", &prop); if (ret < 0) { - pr_err("missing polling-delay-passive property\n"); + pr_err("%pOFn: missing polling-delay-passive property\n", np->name); goto free_tz; } tz->passive_delay = prop; ret = of_property_read_u32(np, "polling-delay", &prop); if (ret < 0) { - pr_err("missing polling-delay property\n"); + pr_err("%pOFn: missing polling-delay property\n", np->name); goto free_tz; } tz->polling_delay = prop; From patchwork Mon Jan 14 10:21:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 155425 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3489299jaa; Mon, 14 Jan 2019 02:21:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN4uAWwihWt4H0CiNiNzZF3SsivXV+xpAHK/wdIXEE24j9ldKJFe6TJlm0BMKVbzjAEjk+u5 X-Received: by 2002:a63:4e41:: with SMTP id o1mr22666194pgl.282.1547461301151; Mon, 14 Jan 2019 02:21:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547461301; cv=none; d=google.com; s=arc-20160816; b=bwif5rtLKAigEOTWvxo0LPJ1EVu3ONalAZa/SIqV9uCo5slIlKbioecSr8RGqb3abh 27Px81MpkFA24TIn6nW3j28Rwn5ZAylCxmCDCgH0IybKqp7w47dIZOwV3BwjFe6aGFR7 +Il8OGXAbp/YXJNtE5rIRYi8Lt2kdhwjFPcW+ZPCYz3xwDANV7F9X8HKVTr8rb+aLtnA 3y4iWO3dEEbicXRd9zarirw2ikCJ+nxydP94DKgs4yXIHuUNl1qwVKDM7rGgTE/Di5TB 87ABsK0acUEuel5a3Sf5wpdQiT2uUZKuNKfSM6Bx1uaw8sq/ZvxQ2aYBP4sc/m3Ps8lM Wh8Q== 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=EJX+dwJGPWWCAq/U7Rxqn4mqzkt0rkUgh6ol6e18W2g=; b=xswzlUkOjN5Xf39aQqaKeQ3Qpo/YfyYWXyhFo57ZHkU8Nonsp8LVoOsptVd1l82R3E scQbqP31CdEJJSqBY1djaZf8pRd40plL+z3JNg7pV5xQ0E1pyaFCHUKLFO6mk63CPgnU di0I+L7hiXmQmVrNMx+fJPOtyw8rsLrYcyl138Q4PQvtXB0mZ/0CPLgtAiNQj2SY8Esu pZLzTeGZAtGw6eYf0EmTZYsURa305YxZwn2UYQi+X8uRYkJxllbMNxU+cL2/eL38AJaJ HCSGW/qkjagRhj78BWp0Ya3p5aE7XbiF+xVcYod1k/o9MGthtKx3brUD7bHJ3BfoIpTF 5CHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZfPUQzxz; 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 bg7si20299plb.149.2019.01.14.02.21.40; Mon, 14 Jan 2019 02:21:41 -0800 (PST) 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=ZfPUQzxz; 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 S1726766AbfANKVj (ORCPT + 11 others); Mon, 14 Jan 2019 05:21:39 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:37260 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726709AbfANKVi (ORCPT ); Mon, 14 Jan 2019 05:21:38 -0500 Received: by mail-wr1-f68.google.com with SMTP id s12so22163603wrt.4 for ; Mon, 14 Jan 2019 02:21:38 -0800 (PST) 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=EJX+dwJGPWWCAq/U7Rxqn4mqzkt0rkUgh6ol6e18W2g=; b=ZfPUQzxziYUzsb8yM368ueLuq8ISb7GvH6YdC9XIQEtutmz5I41/tI3dFA5e2RwFc7 GYkI7+V9hD0yfBKSpI6lHiq4ZPxwtBDFQ8TDBBXW9ENe9G1yDPZ5uLMzW3jDWSP2sK6Z uP0Djba+mAuFnqCUqls4txjXp6QmOcpCWPogk= 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=EJX+dwJGPWWCAq/U7Rxqn4mqzkt0rkUgh6ol6e18W2g=; b=lrpFsB7Aikal9+3zHWGqTIOl8YqWZM0tuZUuDuK0oBZfg5VlsG/vEwLdmF4iDcCAvd tKT2iYpNkP6lcHQyZSGFrES2R+gZUvIBDpxWO79fEUyE4n1HH1eNP8XJ1xurgIRhaFli qcCID4UAOyRzh+A/dFftIEs0bQ55SHc+4597S8/eIEIXY9pxR5WlW2T9LgTjj8kfSJPD AYD2x4mLQVNdqEgMsXN4hitHzADYOCKg+mw10Ekx1ooZvJP2VHnxV59qdsMtFo+U3Vgz Z2Eviegjkold7iURA7Sdo5rfJ3cYnI1H2MdJtnP/dgDRqQ4YMS7tbg4dIrvVFog/DFki qoTQ== X-Gm-Message-State: AJcUukd+gdrvHuiG36t2UtfsApKUOcPW7NR+zF+tUAVczErnOl4VEVjN GFIHP0+bUoUe2QiL4G0h8pP4NQ== X-Received: by 2002:adf:de91:: with SMTP id w17mr25144412wrl.320.1547461297218; Mon, 14 Jan 2019 02:21:37 -0800 (PST) Received: from localhost ([49.248.81.155]) by smtp.gmail.com with ESMTPSA id a1sm63729951wrw.76.2019.01.14.02.21.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 02:21:36 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, viresh.kumar@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, tdas@codeaurora.org, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org (open list:CPU FREQUENCY DRIVERS) Subject: [PATCH v2 3/9] drivers: cpufreq: Add thermal_cooling_device pointer to struct cpufreq_policy Date: Mon, 14 Jan 2019 15:51:05 +0530 Message-Id: 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 Several cpufreq drivers register themselves as thermal cooling devices. Adding a pointer to struct cpufreq_policy removes the need for them to store this pointer in a private data structure. Signed-off-by: Amit Kucheria --- include/linux/cpufreq.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1 Reviewed-by: Stephen Boyd diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index c86d6d8bdfed..9fbc1d996967 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -95,6 +95,9 @@ struct cpufreq_policy { struct cpufreq_frequency_table *freq_table; enum cpufreq_table_sorting freq_table_sorted; + /* Pointer to the cooling device if used for thermal mitigation */ + struct thermal_cooling_device *cooldev; + struct list_head policy_list; struct kobject kobj; struct completion kobj_unregister; From patchwork Mon Jan 14 10:21:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 155428 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3489543jaa; Mon, 14 Jan 2019 02:21:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN6DuJmdwgmuIsY4gNnlmLZlp2vHgipxs4LH52RJ5cgSdIipnp/1XygqP5NIjhXXRIKzaXCa X-Received: by 2002:a17:902:7296:: with SMTP id d22mr25277517pll.265.1547461318412; Mon, 14 Jan 2019 02:21:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547461318; cv=none; d=google.com; s=arc-20160816; b=g+4d/89s8bOiOxKJZTAZfQmczyZLf0PXe2+UBFtxDJTC188lGZlTvNYCY29Z2VBY60 1Elo3Gcc9dVklqpQlzD6bzePpWd/BeVBmZs8m+zP7Df/Mxuxngmxt4bjYJ8tn95cOV8O aadnyfsOtoT7yN3iUoZdQCDGnVjqZRR7xlTtTSTmFUt9OLjf//runIXeSJvJmsuKnL8q OrBxCdPqJixk+tJ23JVnawO53MBScq/7Pq4ApOifwkK7PNUT/yHqm+shO+fsQm11FACg WAZFwpSmV0PFtM98V+wogFXp+ANhonbXKEGklqVBpSshoxWEBj5mRGAKA0j0DjD3T5mD YPoA== 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=cNYNQ5KauWNer74TDBHyi3aVg7qesm9a6f/suNN7BOE=; b=hOMYwMHyxsG+hpG7Uv2F/uuXp4ECaSvVTUAay3rMJ2aJANnT8trfpUvw9B8ypb5uqY fciW16iOHINpMQZgyRfcgnQgHtbviSIUL1pQE0eBamoWEA2VWyi4+PedqgcSTYMUi3tP lVy0T0yMcTZx93X/e6ZGh1T4OcmN7D4pmJFNmRQbd7I6CbKopQi5BODIyEzYjfGAtOEq i6+tQxFGjterqcufs233aZvORCPYd7IWH//8MwoyFdTmwxuSG8OiQuzIT18CkUk4Iqh7 rXXmJGKA/NQ5fyHqdXhOxtXe5QtpK3pML+PgiyuPCieNvyRE5mwKP5NY/SagD5t+aykO 0wEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jmgzWA3D; 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 e8si10223pgn.325.2019.01.14.02.21.58; Mon, 14 Jan 2019 02:21:58 -0800 (PST) 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=jmgzWA3D; 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 S1726519AbfANKV5 (ORCPT + 11 others); Mon, 14 Jan 2019 05:21:57 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36162 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726823AbfANKV4 (ORCPT ); Mon, 14 Jan 2019 05:21:56 -0500 Received: by mail-wr1-f68.google.com with SMTP id u4so22175691wrp.3 for ; Mon, 14 Jan 2019 02:21:55 -0800 (PST) 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=cNYNQ5KauWNer74TDBHyi3aVg7qesm9a6f/suNN7BOE=; b=jmgzWA3DtEZ+pp9ewQZONx3Svz0g4mDEuJnlXIKx1f05yBEZeouIq0rjNWQS/7qvCV ErmFWPp/V40JeP3IvUQIiYvuCzpgj1jmU5olayPUhLnyeYsXCfYmdQvEJx6asF7tzlLH FFyQKblrYrHS5q4KrQQ80EFEA0pDUo9DJxUdE= 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=cNYNQ5KauWNer74TDBHyi3aVg7qesm9a6f/suNN7BOE=; b=mQX8OMNSUINfrcvo5hHXSDY4/v5W98O2QhC8kNgrzHEkfbRYvT99Ph/gs+IvJ3ECO5 PYBZ42mTXvUIKjofzniktR+Nj8XL4ZAPyLFOlLBkg70jIwVk+v7yjwIXRJG+u7EuYNRW Wk/gAhUkxDbEr0I9GgmZ820ZhsZKD/ev56fHW8PTSlFsELL1N+J2VxeiqJDHgCMBK6KI iOHU5/0V5gy+/pWPixSpD61NfD5+ppPzGSZxRNHE3T12NLoiXqvm4yet+JMfnxUmdq7B iISfvRKGcL7aRb/2zggB4C1JDK550L3BIrJazM8g3kfpRaZ+GXUNAi4eQSnxPcWgkoQ1 Z+2g== X-Gm-Message-State: AJcUukefaAkCqV405khrXVC0z09wgAEdWSwS/7dEcpXljgFRXqkrhWtA IiNyqPXMhO7YSUimLZOkXw+rMQ== X-Received: by 2002:adf:8421:: with SMTP id 30mr24392096wrf.153.1547461314750; Mon, 14 Jan 2019 02:21:54 -0800 (PST) Received: from localhost ([49.248.81.155]) by smtp.gmail.com with ESMTPSA id y185sm17801534wmg.34.2019.01.14.02.21.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 02:21:54 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, viresh.kumar@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, tdas@codeaurora.org, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org (open list:CPU FREQUENCY DRIVERS) Subject: [PATCH v2 6/9] cpufreq: qcom-hw: Register as a cpufreq cooling device Date: Mon, 14 Jan 2019 15:51:08 +0530 Message-Id: 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 Add the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow the cpufreq core to auto-register the driver as a cooling device. Signed-off-by: Amit Kucheria --- drivers/cpufreq/qcom-cpufreq-hw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index 649dddd72749..47c7cea22da1 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -231,7 +231,8 @@ static struct freq_attr *qcom_cpufreq_hw_attr[] = { static struct cpufreq_driver cpufreq_qcom_hw_driver = { .flags = CPUFREQ_STICKY | CPUFREQ_NEED_INITIAL_FREQ_CHECK | - CPUFREQ_HAVE_GOVERNOR_PER_POLICY, + CPUFREQ_HAVE_GOVERNOR_PER_POLICY | + CPUFREQ_AUTO_REGISTER_COOLING_DEV, .verify = cpufreq_generic_frequency_table_verify, .target_index = qcom_cpufreq_hw_target_index, .get = qcom_cpufreq_hw_get,