Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp558113ybt; Fri, 10 Jul 2020 06:53:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoa8jRPym0JvRiSFlL6gaUzDRo9Y75PDAPsyPmPbM7hDb8Xlc0DslEDY+SNCIYrYWNI+l7 X-Received: by 2002:a50:e689:: with SMTP id z9mr30237908edm.131.1594389189780; Fri, 10 Jul 2020 06:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594389189; cv=none; d=google.com; s=arc-20160816; b=p91lAYWrwhJV3MSBLRll3+j6cR5z4RQ43JQwik8BMAvGFiyMP2z/eF+eOuz7axTuhF pZEF3lRshHu3fxIKV0NdDeGPdxPdhzVc2PZDSmfmNEVxep3WufY2tJrqbdL/WUEs7RKV Cz8wdg95Ifs2cUQo1gzdgKHgguW3PJpMFUZX//m27rKaX3rkG8ZJgDZnhLUKkqoVJMOA YnQVaE0K8GIRNkZPVbrUDy337fUypwoNg5he5EHFWKjctdocN+zkQ6StKpAhjj7LwWHo LcFaDABLF3yiFY4Qj6HQSDtz3rFE8uQA9MNFOkWFt9H1EX/3es4jzzLiw+sYfPw8L0/T KSFQ== 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=eDcYPmPy7+l0plRPPgwFV6oY/7l9ImuTW+bIxNgr1ye/gwyutzx5GlPfbhRROo3e5j Fo+Vj1eol6n8ySjMmEZLwDh2m/5cP3tMAgey1UqHHxTNbdBsLaUafFNuKzk9f9R4+fzP j46dvDnJm6gPUPOq9pU12hOpjN7eMPx1DVQBsCGiEVymrRCQvjZfu8A06H6/MPR3CjkU xMZD+KJqSTe8/edBpnm5wEs5WFWSmV0gyG4fwO/1R4JZOB/rwzfnsx9pk/md8sJK7Kbo XOugVSvVNF/D5yVJgoCz3Gz5rj2iajjrzj0PXGp+v3w6IvFMkWgcNq5V7luN2ittWJ5A L3gA== 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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id h12si3963239ejf.12.2020.07.10.06.52.46; Fri, 10 Jul 2020 06:53:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728054AbgGJNwM (ORCPT + 99 others); Fri, 10 Jul 2020 09:52:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728057AbgGJNv7 (ORCPT ); Fri, 10 Jul 2020 09:51:59 -0400 Received: from mail-qv1-xf41.google.com (mail-qv1-xf41.google.com [IPv6:2607:f8b0:4864:20::f41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FAEEC08C5DC for ; Fri, 10 Jul 2020 06:51:59 -0700 (PDT) Received: by mail-qv1-xf41.google.com with SMTP id e3so2550290qvo.10 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=kJg/lPrXp6z83obgGJQUcZ9yX9Nawgk0R+reR3h2B3rCOzTfiwG2bjRJZwjqokJv39 CrjGr/KZj9vtT5y8dI+DfRlAXGI2SKDeP5ZgQIvOlWflgdPSqftxMpVsR9UDGvaMsHVm ugVlnhzF4UNdtoM77AuT/feurv1eGrbZV79d3t/+aES2LVixOVYQ46egoVLSl5xn4X7+ QIFUWFxj2a8dXQ0QBYbk0nZ+BG41FWjNF+WKk56gmUxmseufxnRdZqN6h4+WZ7F91vrw etDXRgbvrUs2/BWF4a3bgZQhVHFcIs9eSyLGGl4e15ROuCGDjTKTFVWlCZvIBgNfgCAf 1M3A== X-Gm-Message-State: AOAM530wVfCDZ9MuPqjlwz0DY+NxCGz4tAX9vFMGKd1L/qCZHn2oU7HK zWLqshktVhND8nx6Lo6LHBlmDw== 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(+) 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, }; -- 2.25.1