From patchwork Mon Jan 21 15:40:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 156210 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6514171jaa; Mon, 21 Jan 2019 07:42:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN4uGjo/shi7YONF/tIA1ZQtqj+p6c0FOAfiawp25kXgoiDA/U9fKCsbVpftFAdJuQBqQfNr X-Received: by 2002:a62:61c3:: with SMTP id v186mr30370119pfb.55.1548085321291; Mon, 21 Jan 2019 07:42:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548085321; cv=none; d=google.com; s=arc-20160816; b=D9XNzX+UskRi+sPPJj9StUSQGyr4mi9TIgnGnfVYODDsgKottAwaY+YduuCXPJ/HNL r1yN6OBME042NdMqUO3vUBqIYd8ZSsPTvI5M+e2axxtRELcdCjKKQBmtkJYANomHJQLA p7SVETtSZNqQq3dvFJdNu3aHmoE20r6BOzVYwsdUhesAD9x+ucPDSjKRrITnIhOjj0hG o6JwlL75F+6ytynrgn6qFyUipQ8VYHNms9TdBJl6R6vYZtGs0Nvkl3GRR4SJKWeAg+TD gc54AY1AYEE32fMAuGYNkUIFJ1rxhnKFPfj51Vv1zsi/ts4c4hVpKfgiBt3+f5xeQ8F2 5W0Q== 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=MA5crrD4Prr0EwOduSOR30oSBtIqdGdvyHP08sn6BN4=; b=UkggvFE8EYPLY8OA00afupp0icalpsOyuUbnnXHdTLBlb5pjhxRL3/L3Zm8WJGq92j QH9tP4/2jzXp4CBiYEyqqXZqNW7qOhy8rJFGISjEcH91PIMaYv4Wv6RZXzcbOIcbnXsr 6LQOzj9dGhu11VHhgdXjJ9l7DyhI4DfLz/BhN6GvRU8jitaQ/g2peqFwENtUNxwvROX+ KJYCteMhGzhHT/JnWg3t9edM8aoh9LjCXnX152URcufh1jSNK3qHAyt6uajPTF9QTKJ9 K2LFFgPiZzI01gK8KIsYjz/jwErx0FicGvJyLeAmFAeFY34fdmcJreQfTDKJbztWMtgJ knDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cecMvNOR; 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 c21si12316502plo.165.2019.01.21.07.42.01; Mon, 21 Jan 2019 07:42:01 -0800 (PST) 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=cecMvNOR; 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 S1728848AbfAUPmA (ORCPT + 15 others); Mon, 21 Jan 2019 10:42:00 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:56225 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728726AbfAUPmA (ORCPT ); Mon, 21 Jan 2019 10:42:00 -0500 Received: by mail-wm1-f65.google.com with SMTP id y139so11163358wmc.5 for ; Mon, 21 Jan 2019 07:41:59 -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=MA5crrD4Prr0EwOduSOR30oSBtIqdGdvyHP08sn6BN4=; b=cecMvNORUI0LJhDEkXZiJkKGrmrINxViFgzLZLmXH+mfHUy5MUr3camUrdGLMWHInZ cYGLQNhxwf0h7JHoMUrNqhHozWFcG5G/1fX0nw6iQLZSxt7DL/IMVB1cgVfoiP+4ZS77 y72HkXPbiu1T0D2e7j7dQCh/Ykfploq2teC18= 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=MA5crrD4Prr0EwOduSOR30oSBtIqdGdvyHP08sn6BN4=; b=PmIjaGQNvHUni1yr50Uv6oY6rKO45lJydYUJacOw6lzPspRylSFJFkYyex/EfT9LWh JrNz1oE2XqU+g6w8fbrKNrdMkPNAeXtoDYk726BG6JBKpIPXnbHWtfBnYVoxGKD1fL8W /YH+IwcoR6ZVK2MLWBTGcPpR0m1FO92HP32Vp2g0XVmVc15Qc4NbTxRIIcsHR22osAPb OJ6WW44STlv8EX9kr8M2q7Dw6ZdQRUbM56BvcerS+shZYJv/LzQ990cMg4Le9nSgEOs7 SVsKmDj/la6bM8WL4FyxBvijGCF28wC8uOB5WQ/a2UG75GX7N2jY87063TUAWZayY5n+ PhgA== X-Gm-Message-State: AJcUukdjpJveLjjWjtkuwjuXThAi6P4cl3eucP+K0puTl/8v2IJAEJBw XzIyf7CyYT+Qqzy88vtLur828Q== X-Received: by 2002:a1c:b70a:: with SMTP id h10mr24359200wmf.125.1548085318345; Mon, 21 Jan 2019 07:41:58 -0800 (PST) Received: from localhost ([49.248.61.1]) by smtp.gmail.com with ESMTPSA id k15sm127527555wru.8.2019.01.21.07.41.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Jan 2019 07:41:57 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, viresh.kumar@linaro.org, edubezval@gmail.com, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, "Rafael J. Wysocki" , Daniel Lezcano , Matthias Brugger , Sudeep Holla , Zhang Rui , linux-arm-kernel@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-pm@vger.kernel.org, linux-mediatek@lists.infradead.org (moderated list:ARM/Mediatek SoC support) Subject: [PATCH v2 0/9] cpufreq: Add flag to auto-register as cooling Date: Mon, 21 Jan 2019 21:10:25 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a flag to be used by cpufreq drivers to tell cpufreq core to auto-register themselves as a thermal cooling device. There series converts over all the drivers except arm_big_little.c. Tested on SDM845 with the qcom-cpufreq-hw driver. Only compile-tested the others. Things needing fixing (but not a blocker for the series): - Look at how to detect that we're not in IKS mode in arm_big_little's .ready callback. Changes since v1: - Fix compilation failures with allmodconfig - Get rid of #ifdef in cpufreq.c - Removed miscellaneous patches and sent them separately - Merged patches 1 and 2 from v1 Amit Kucheria (9): thermal: cpu_cooling: Require thermal core to be compiled in cpufreq: Auto-register the driver as a thermal cooling device if asked cpufreq: qcom-hw: Register as a cpufreq cooling device cpufreq: imx6q: Use auto-registration of thermal cooling device cpufreq: cpufreq-dt: Use auto-registration of thermal cooling device cpufreq: mediatek: Use auto-registration of thermal cooling device cpufreq: qoriq: Use auto-registration of thermal cooling device cpufreq: scmi: Use auto-registration of thermal cooling device cpufreq: scpi: Use auto-registration of thermal cooling device drivers/cpufreq/cpufreq-dt.c | 14 ++------------ drivers/cpufreq/cpufreq.c | 6 ++++++ drivers/cpufreq/imx6q-cpufreq.c | 24 ++---------------------- drivers/cpufreq/mediatek-cpufreq.c | 14 ++------------ drivers/cpufreq/qcom-cpufreq-hw.c | 3 ++- drivers/cpufreq/qoriq-cpufreq.c | 15 ++------------- drivers/cpufreq/scmi-cpufreq.c | 14 ++------------ drivers/cpufreq/scpi-cpufreq.c | 14 ++------------ drivers/thermal/Kconfig | 1 + include/linux/cpufreq.h | 25 +++++++++++++++++++++++++ 10 files changed, 46 insertions(+), 84 deletions(-) -- 2.17.1