From patchwork Fri Jul 10 13:51:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 235240 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp474629ilg; Fri, 10 Jul 2020 06:52:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUYh/0v2Nmx6idIjVwriw//cWLW8XaklNsX1Qh9BYhk32TmLIdfMR6SAKDTaBtc/tbRsIO X-Received: by 2002:a17:906:4949:: with SMTP id f9mr38138722ejt.495.1594389132896; Fri, 10 Jul 2020 06:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594389132; cv=none; d=google.com; s=arc-20160816; b=flFjcMfUdqpn8zKnX1wtmgrJklQQSMhSwjgRHyPFRZu70ue7MuzyUKb1gxVWw41cBF OdlKxNWtvfh3dRbtP7iTOP5WAUBzkkRJbMprIJ1rAn2USoXQxLdKgyK9Ps095prMpsWj bYCpYKSvrqcArpAjHobqY6j+sOtSuqe63P3zkBmIG5XPJ4ZlJ1g1RMfIuLOaUShxHDX3 +biVREFgZbk71dUqnTatAOrUByjYKt8fd79NMt5yL1LIqtr+N1vEdBL7okTjUYBqalPp ycEpnhZD8D34UPFES6d9tk9LG8vmHjbfQchuFehFWhBhyn/l6OlN8mOh4llPc9wOfAQV Kbog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YBRBCvYRb3MFXeLAaBYfIDC82lDpr+ZILSytnXeYPUo=; b=yNwmCmR1jMvWcOalNUZFvg1kcrFMmDPJYD8lsy+pd8R0Z7vPOO28Z67SCkDTdjdhlc 87U7VDmv0gJNlaMPvdhzjtKmsc9tkAgwGvEzajHsY427G2vBvZzz0pmjRWC9sfhp/vP2 +14WEij0TpDCnzggHKZ9atxKdcReyqg4Pb2gtt68wrV0GEA3uWcrwHqYV3gwD9muENZe tFChx1rzSWCOU04MoRGRi5kkgarbPT+ZDqrhR58ScLZEH8LhfsRqPuwMf7ZCKewUbrnF dtGtN26IqIl9aa9/OiOgI4jsMrojmNF+il/0r88nBLiGCtRzgcqrfgj8/R4WDB+5luHF FX9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WTSsDLYL; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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. [23.128.96.18]) by mx.google.com with ESMTP id bu2si4562216edb.423.2020.07.10.06.52.12; Fri, 10 Jul 2020 06:52:12 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WTSsDLYL; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1728053AbgGJNwL (ORCPT + 6 others); Fri, 10 Jul 2020 09:52:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728054AbgGJNv7 (ORCPT ); Fri, 10 Jul 2020 09:51:59 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40F21C08C5DD for ; Fri, 10 Jul 2020 06:51:59 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id p7so2568121qvl.4 for ; Fri, 10 Jul 2020 06:51:59 -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 :mime-version:content-transfer-encoding; bh=YBRBCvYRb3MFXeLAaBYfIDC82lDpr+ZILSytnXeYPUo=; b=WTSsDLYLfQgMCAnUH4/Wqr5JloFcts3FrYAvJpo6wwj9aeDvhhgnniUbW/OPDIBiqw hs27Or8eysCLp1tmD+t1kDIFUV/hF7caPVUTfbz3ByeN1IouhxjwAVQiH5/e0pgnaInj Bx8bKTZbrzIugx4OkiISTAtq6glPdIwCTEF8cXO3CAaF4VOl6rbKzqNJ8tXF1wJlif3K oRHhjEZU0FttNgLDX8RdFSCMJODaf76heuZu6uZ8C7mU6rDeqIb2uSpohF8Ci2jSnAPC HjWh5UfSrkThuHVGW9SGRMeB2Bmf+MX+WD4xo7R8iv1kVgs60tgZrzmdzgVKF/pgZhJJ yPog== 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:mime-version:content-transfer-encoding; bh=YBRBCvYRb3MFXeLAaBYfIDC82lDpr+ZILSytnXeYPUo=; b=c9VpZZf10wEKARWgVeo6qZFd00aOKvIGNIOabcnujHPAs7MWInIdY+DvwMPgGwbwNe 9092Y2tOxafrPd18BlXipCQ7ctQjB3HjoajdP6KkLgvyqJG/xtETHmUYFmxg4vF1FAi1 z0yfeyp/1JFvD8BAsMonNKb9Rf5XQWWuKYaVpn4iiWsWMVmp3WrssmwraZPMglsBIoWA hOue4pgTRJeoZn107nL5iLaKBE93f6t0q5FAnYBvtv6lj3mjDQiBi+sJw6faAVSRJs52 hVzqldpKBA5gzcdeLPEO+TulktuJwXajbAN8wQAYek7NaEg2JjYAtKFLsmHykHCtR1QE Y58A== X-Gm-Message-State: AOAM530pZ1heQm5GIU8J+JRM8lKAcFHBH20XKUtRVfABBXh++5SaFn2Y J8Wb+1xYcFPwQ8bgxJNlpQzRXw== X-Received: by 2002:a05:6214:170a:: with SMTP id db10mr59841986qvb.216.1594389118405; Fri, 10 Jul 2020 06:51:58 -0700 (PDT) Received: from pop-os.fios-router.home (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.googlemail.com with ESMTPSA id h197sm7574059qke.51.2020.07.10.06.51.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 06:51:57 -0700 (PDT) From: Thara Gopinath To: daniel.lezcano@linaro.org, rui.zhang@intel.com, robh+dt@kernel.org Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 2/4] thermal: Add support for cold trip point Date: Fri, 10 Jul 2020 09:51:52 -0400 Message-Id: <20200710135154.181454-3-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200710135154.181454-1-thara.gopinath@linaro.org> References: <20200710135154.181454-1-thara.gopinath@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add new trip type indicating cold THERMAL_TRIP_COLD Signed-off-by: Thara Gopinath --- drivers/thermal/thermal_of.c | 1 + include/uapi/linux/thermal.h | 1 + 2 files changed, 2 insertions(+) -- 2.25.1 diff --git a/drivers/thermal/thermal_of.c b/drivers/thermal/thermal_of.c index 69ef12f852b7..b4e564a422fe 100644 --- a/drivers/thermal/thermal_of.c +++ b/drivers/thermal/thermal_of.c @@ -754,6 +754,7 @@ static const char * const trip_types[] = { [THERMAL_TRIP_ACTIVE] = "active", [THERMAL_TRIP_PASSIVE] = "passive", [THERMAL_TRIP_HOT] = "hot", + [THERMAL_TRIP_COLD] = "cold", [THERMAL_TRIP_CRITICAL] = "critical", }; diff --git a/include/uapi/linux/thermal.h b/include/uapi/linux/thermal.h index c105054cbb57..7ad62a33457f 100644 --- a/include/uapi/linux/thermal.h +++ b/include/uapi/linux/thermal.h @@ -13,6 +13,7 @@ enum thermal_trip_type { THERMAL_TRIP_ACTIVE = 0, THERMAL_TRIP_PASSIVE, THERMAL_TRIP_HOT, + THERMAL_TRIP_COLD, THERMAL_TRIP_CRITICAL, };