Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3406492imu; Mon, 14 Jan 2019 02:24:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN6XuLuowGBhP+aG1rjBF0Q+DTcCRLl8KEUFxv4AIJ8S536ZnuJCV4arz4cZ8StmqYel+AEh X-Received: by 2002:a63:374e:: with SMTP id g14mr22654779pgn.59.1547461443401; Mon, 14 Jan 2019 02:24:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547461443; cv=none; d=google.com; s=arc-20160816; b=mwzzbpOINinSsaN5Nvw3gN5wGHpy0BWPGjuihm0L+AK3YTMqrU/6zpPXeKtESaa3ZR 2OE2/t8eWD87u0x/V9qefmwFUqE4SDPbrOXoEDL0P3koCP0hOguVHTkexn7yayJNVYAW 1eaR4c63PG/jPGSVk1hbFH0q6waSH2mrCbtKAyWlXqpRh69/AioVdFvELE8f8eMTAcop 1ddMfjJEB+XWvdBdvHQqLh9GYhmY97Pz53YHdBvYggq3PaTT6adHBN9cJ50SCYbppotU rSy47QvxMCZsyrRdB0Zrh6AOk0M0BdZWmaWsFJYxVzHBvTHR1ulXft+zbDtDfaEwmWGj Canw== 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=+q/dK73tHXxtdjEDrD8QwoRGWsQ9m1+k89z7XhmwxY0=; b=shCcOw2AGRr2ZHWlGRqiMD8mtvgQ2O/uIrKCZ0s3aA/MFWbFj1yS/ZcPKUsTIzwAMD 7lWCYwAgJ1zr9/+542TXFQO9nUxyxAssbNddOtpv+pi4DiM58BsG1LjiA8Fs+CkCAOou h7mqwzRjSBmA50sGG/wkw9xEui+jLR3IOaxWP/vDBYlufW102Hh+L0QU7/BR+Ywa55cz srwFxygG7tvmdfilXfCDgkZWhyrTjixG5V21YW/blqPkvs1Am8CAbyrhHcaQatNZvq3I bmVVLHThETZaP3wlMpMNcwUTHspGrg9QY6LpdiuYa9atks3pSsF9dLBhf+khDHFvTnO7 Ywig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VB0OtnA+; 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 q4si28660pfq.56.2019.01.14.02.23.47; Mon, 14 Jan 2019 02:24:03 -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=VB0OtnA+; 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 S1726679AbfANKVW (ORCPT + 99 others); Mon, 14 Jan 2019 05:21:22 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40291 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726659AbfANKVV (ORCPT ); Mon, 14 Jan 2019 05:21:21 -0500 Received: by mail-wm1-f65.google.com with SMTP id f188so8208972wmf.5 for ; Mon, 14 Jan 2019 02:21:20 -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=+q/dK73tHXxtdjEDrD8QwoRGWsQ9m1+k89z7XhmwxY0=; b=VB0OtnA+R0ybHWQ8Ch+8EXfaWlytMUpKxFsHZCDgqf7Wo6QVZ2in4hp7ZuGxKLdklL Mms9S6vXh/M9tnVX/rI3JP/flQgigSnx5IO/0F1fnj6EJ6aHpV2WYmoDes2BN8x9JIH9 HX/nt5WPmkXjHQyWyoNZJA65er0vnRLrjAmTk= 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=+q/dK73tHXxtdjEDrD8QwoRGWsQ9m1+k89z7XhmwxY0=; b=Uv2U+Sc4euTrNh9Lr61g2JiIcXrVdYitBXZ5c076TblqmQKzwVC8HVNhn98b5oFFHe 3sNs1rfLVv83+oLmPMFJYE4MjnqcygBQZNwswxSvWcBKbQ0gx5807QgecXc09+GHdz03 XPFTNuLs4XrxNneK9OlLs3T25kpzHsJ+QCCHKm5zna+98LPhtWY/d9Nxe5yHb3KJvuft 9SsjMJqd35PFTdX2+4OxNZdRXdV2G4NBtDVAvg7iDY+I56EWK3cn//Xrc//J6NQZTDpk 5WoMsHyu8MDDAb0G2sSnBevSIA/6Mt68+NJlH/ZLmJCTWXrasAo5ZQJQS4DwR9PAxANo U8yg== X-Gm-Message-State: AJcUukeUU9VGxL0qM1SzBidfvHjMullC88RPjvkz5j/b2/Zyn+5IOJw5 g686e2oq0e8lt8w0pgyfaeRY56Jexi4= X-Received: by 2002:a1c:70b:: with SMTP id 11mr11661449wmh.74.1547461278843; Mon, 14 Jan 2019 02:21:18 -0800 (PST) Received: from localhost ([49.248.81.155]) by smtp.gmail.com with ESMTPSA id t70sm44682285wmd.36.2019.01.14.02.21.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 02:21:18 -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" , 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 v2 0/9] Thermal throttling for SDM845 Date: Mon, 14 Jan 2019 15:51:02 +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 flag to be used by cpufreq drivers to tell the cpufreq core to auto-register a thermal cooling device. There are a few miscellaneous fixes to keep checkpatch happy. If this approach is acceptable I can send a series converting other cpufreq drivers to use this flag and get rid of driver code. Amit Kucheria (9): [ALREADY QUEUED] cpufreq: qcom-hw: Move to device_initcall drivers: thermal: of-thermal: Print name of device node with error drivers: cpufreq: Add thermal_cooling_device pointer to struct cpufreq_policy cpufreq: Add a flag to auto-register a cooling device cpufreq: Replace open-coded << with BIT() 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 thermal: cpu_cooling: Clarify error message arch/arm64/boot/dts/qcom/sdm845.dtsi | 193 +++++++++++++++++++++++---- drivers/cpufreq/cpufreq.c | 13 ++ drivers/cpufreq/qcom-cpufreq-hw.c | 5 +- drivers/thermal/cpu_cooling.c | 2 +- drivers/thermal/of-thermal.c | 4 +- include/linux/cpufreq.h | 34 +++-- 6 files changed, 210 insertions(+), 41 deletions(-) -- 2.17.1