Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1317122imu; Wed, 9 Jan 2019 16:02:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN5g64rvKlNuaYFUc7ohi4LNsOCc9PtR3CCX3iWBEJJ082WsrCYCFPdk4jlnZAAw1W9qe86y X-Received: by 2002:a62:9f1b:: with SMTP id g27mr7753646pfe.87.1547078549451; Wed, 09 Jan 2019 16:02:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547078549; cv=none; d=google.com; s=arc-20160816; b=I4mKyRRYLTcF4+wxz6mJSKdjVNqcQwBXNRLKCtlKCquoRjzRNCFcpwnMm49H+bdfp9 xKtXFn82dfscKyo32V/0RK342B7+7Bjju1FTkmVwCqdpfxm2cMFl/1dT01nsoJc6Z+1E zx5uozTA/kvAiwagd9sHEUEm6WuPoQ5ZyNqUyFQo2gV4WPv/U5SjpqDEoI5oqiEwTsrX hPkYemygxCRNmSmfw95PIxP0vnrBSXvJn2iFVJ1+OUyj3R4qZPHz5KJJGHqbHq4I0ghe 2lbrVMoPk32mfTuIfr3yuD9ugmfgcVezIkGcnQJADtRObr2cDUnzKHxttGGGsrZjyHwJ rukw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=6tNA+FYLjHsg7Dy70AVQeC2fNb/ZAEx9fCsX0Hi+CaE=; b=fB4KZEvA9gjn1fT8gp6WFWF2afIduudIU/+2oA8Kq2DMmgq3iMikH6heO/oMdsuy1C OTv2tVg+wTz0KNvMLg7s1PKf/hr8LMBL+Uz1awICQTMtNjGk7df4yyrAK5HvscjzwYWU m4m3KMOeEdJSAO13pJETD21i3hHonGQ6nHySRZoWaBUwYu9lKGAuI9xiKrpJK8dHZVKR lqeI2Cv5l9+Ie4WX9U0dwL2PyMjP/+J3TS914r4PAMto3A0tA041aJrXYfK2oGnPkUpc wL4PF4RJWbEHGpFDdHFegoaj/ySDJeD+poT7ClcfqypIY61TpsUDOmXUpFGYnv2yQDzx HRlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Rv/SJeGW"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 t5si21567159pgm.79.2019.01.09.16.02.13; Wed, 09 Jan 2019 16:02:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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="Rv/SJeGW"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1726606AbfAJABG (ORCPT + 99 others); Wed, 9 Jan 2019 19:01:06 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:38136 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726470AbfAJABG (ORCPT ); Wed, 9 Jan 2019 19:01:06 -0500 Received: by mail-wm1-f65.google.com with SMTP id m22so10239995wml.3 for ; Wed, 09 Jan 2019 16:01:05 -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; bh=6tNA+FYLjHsg7Dy70AVQeC2fNb/ZAEx9fCsX0Hi+CaE=; b=Rv/SJeGWqNvGJknKqLvm1iUyZL0aCVU7EjlEv/0NGbiCtBg+BETTJzOn+fRp2ID6wn DpDiMjylwnG5Gh/oERnlPSGeOhDh5gZq+GUOIUV1SpfJl55ii78dQik/+AUER7eFqW6H KtyGwotpT6zHAmyvfrGpa6hila131TEuKl9TQ= 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; bh=6tNA+FYLjHsg7Dy70AVQeC2fNb/ZAEx9fCsX0Hi+CaE=; b=UXoXN9M18DE31NbaveC0llmlhAM4IoYw7/dCRGaFZ269gtI28LlLqtoUP7XOTyicrD j66EPc8lT5ydro5oZkZNqLOqJOcCWBUA7wEU3UA0SjwaCyMikQgpgkLMb2ygGWxkk3pi w2b7xwqAYHufivZrxSZmYFSSzpQFAn67wd+hUNuYQinRal5K8NepKohsBz5N276jo42P VTq38kOYtgj3XZG20OSCaiW9/lCjEcTDdFy+gDgKh1yoZ1Qfxlt/CF22QV3wKqmnej7W 3b6UwnGHTmA2H5kFJ/QYHBLJVTXhidMB7aztCODtcwTp8yGw8PcDLxa1ekb/eGDp8Ffc kznA== X-Gm-Message-State: AJcUukezJ3EL0yumCKZ6WGVHtlEVP0BLoktxTNPgD0Yne7ansd3jmKWh nssbFGrbD+L76FlJ+HFT+Ms9S2hColU= X-Received: by 2002:a1c:1cf:: with SMTP id 198mr7340065wmb.5.1547078464370; Wed, 09 Jan 2019 16:01:04 -0800 (PST) Received: from localhost ([49.248.171.190]) by smtp.gmail.com with ESMTPSA id 198sm17034018wmt.36.2019.01.09.16.01.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Jan 2019 16:01:03 -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" , Amit Daniel Kachhap , Daniel Lezcano , David Brown , Javi Merino , Mark Rutland , Rob Herring , Zhang Rui , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-pm@vger.kernel.org (open list:CPU FREQUENCY DRIVERS) Subject: [PATCH v1 0/7] Thermal throttling for SDM845 Date: Thu, 10 Jan 2019 05:30:49 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for thermal throttling on SDM845. We introduce a generic .ready callback to be used by cpufreq drivers to register as a thermal cooling device. If this approach is acceptable I can send a series converting other cpufreq drivers to use this callback. Amit Kucheria (7): drivers: thermal: of-thermal: Print name of device node with error drivers: cpufreq: Add thermal_cooling_device pointer to struct cpufreq_policy cpu_cooling: Add generic driver ready callback cpufreq: qcom-hw: Move to device_initcall cpufreq: qcom-hw: Register as a cpufreq cooling device arm64: dts: sdm845: Increase alert trip point to 95 degrees arm64: dts: sdm845: wireup the thermal trip points to cpufreq arch/arm64/boot/dts/qcom/sdm845.dtsi | 161 +++++++++++++++++++++++++-- drivers/cpufreq/qcom-cpufreq-hw.c | 7 +- drivers/thermal/cpu_cooling.c | 18 +++ drivers/thermal/of-thermal.c | 4 +- include/linux/cpu_cooling.h | 9 ++ include/linux/cpufreq.h | 2 + 6 files changed, 190 insertions(+), 11 deletions(-) -- 2.17.1