Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp315479ybb; Tue, 24 Mar 2020 23:37:49 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtGW3x4yR9QE4cABBzm5d16sWl/yjh0Nvn2YjDd9MQ1hdQAWIa/dd41iF8uOFpz5P4PKjAs X-Received: by 2002:aca:acd5:: with SMTP id v204mr1404093oie.124.1585118269325; Tue, 24 Mar 2020 23:37:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585118269; cv=none; d=google.com; s=arc-20160816; b=y/LPEeemQ93x4AeIsMzzD5a3L/LVgQSrcG3VHvwF+3xQQTdm99LDdAZMxYLSKf7vOL MO3mC9+5b3uRDrs05zhfM8PQzTWWoKOCVLMdVIKnC6UMmrKU32RNWE0VSWGQROjneXpZ f0NAx/P5xelYTI4+hKuZrqKAKBaVnNeAj0emul+a73wF07urWjR9g7U258WPN1bKlmgi WpwnNF/ObJNC+rmDwP50QE4URNdJfsWmneHgOqMd5BKfSSZxsTw68xw9uBdzE0Nn9CJw EZYtQgbrg1V+bKVE8RRKhjX91TAhtYdar7Nf/cCUzjvRKER7JopHjB5eoCBYUrnzV/91 JBuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=9jSH6IwIzcHxO1dEAdKynoMSu3DuDL5sjpp02Uv2TK0=; b=FUWh0sokur8lMCGlOoljHXoOVrQj4dAtZuMhn9HEvjTtMnmRZYPL606RVf2eDbvoBl Yz1iH5l2wAMp446TvMa0Yp/xN/S5P56TUZyT50v77GwXxC9mMqZ+BQEOnMWiqyCHmK/D jOqucKZksL1EYLOkEjbFkHeqDEwsV5RKpqACbEBDPFfA4jtyxvzjF+H94HnWLoLLhIkd 2LHCWaq84BIQ6eA/0C8j4Ftko8bkyteuELaQKSf7FgCJZuqtapbJoNMYMzIexTNBB38h 3GSP2WumcABmDyCVDT/IA4+7B09gR89mfmHgX4ELZ8IrXBT7XULwqqhF1N8QPXJZieHx 3ltg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jDm+gCbr; 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 a19si12790371otk.60.2020.03.24.23.37.36; Tue, 24 Mar 2020 23:37:49 -0700 (PDT) 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=jDm+gCbr; 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 S1726319AbgCYGhR (ORCPT + 99 others); Wed, 25 Mar 2020 02:37:17 -0400 Received: from mail-vk1-f193.google.com ([209.85.221.193]:38362 "EHLO mail-vk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbgCYGhQ (ORCPT ); Wed, 25 Mar 2020 02:37:16 -0400 Received: by mail-vk1-f193.google.com with SMTP id n128so380989vke.5 for ; Tue, 24 Mar 2020 23:37:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9jSH6IwIzcHxO1dEAdKynoMSu3DuDL5sjpp02Uv2TK0=; b=jDm+gCbrABJRyKRkp6gI9YwPYuCeyHlXluAEXOh4yEMKoB+Tdx9T0+7noW1hpUNKzZ Kx/ZghXAAOW1qwMTlbHcf7Cig7EJ1MkmptqzUsnzhGfuytVbR6W5/tZy0c9w68S09hEb GoXhEGlfEndrcxqymIz5E4AK/TERQhQBmuoYIdgtF2ZaqtXRhVe8H86H7NSD7Jjg04nA STKax034sKWZzH1CevSpC8khjbcZcVVxIAJfS5r9pkeDk5lT61cLr+mNuU+KGm22qLTf YAMJokPA29sN9sDPIx7mSxT1/xoMMrPUqC9d3wBKZ8Siulb2zK8uHy0mqdOxj8FTcBaV P+dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9jSH6IwIzcHxO1dEAdKynoMSu3DuDL5sjpp02Uv2TK0=; b=OvlnwC+GcPJ2CBDXEfqZwVWZu6z4qU65lfZphuDzAtKXL3+F06L8ABkFaCYbAoS+qK j1eOhhxcFKIaibaDPNuXCyq9bcTFPXTMqEokRWaz61+SpoXFema3uTv9SAEI57PMfBhJ P5yUtszxhZTsqGJn4ch/j+QK7fBXHg61yM+O1mmvm+0SvPd7rdynCWAJpyE8GJh5x2ww 4UXbqN7ukbjQdFEHO5n0MPiqjmd8qC+fT2HehiMAhvNb9wGOYPaYe2ICZ8VpCwBri0dY UFjjecn00yuCnHbm0bEKjvSkrpkSIJtEZ3ywPnIq18PpveYn8zytoKpXjPJouwe8hjaR yNBg== X-Gm-Message-State: ANhLgQ0j41Pd028XI7SFhr5xPNSclsobfJ7td7MykO8Pxl+Wr/2fXRP0 85Az+kJkL6tb/RPAa/a3GDt1AVZjpK1r1gxo+4nPXw== X-Received: by 2002:a1f:ee05:: with SMTP id m5mr1056922vkh.9.1585118235539; Tue, 24 Mar 2020 23:37:15 -0700 (PDT) MIME-Version: 1.0 References: <20200309045411.21859-1-andy.tang@nxp.com> <18c58e1b-583c-2308-ee60-a8923c2027ee@linaro.org> In-Reply-To: From: Amit Kucheria Date: Wed, 25 Mar 2020 12:07:04 +0530 Message-ID: Subject: Re: [PATCH] dt-bindings: thermal: make cooling-maps property optional To: Daniel Lezcano Cc: Yuantian Tang , Zhang Rui , Linux PM list , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 16, 2020 at 9:43 PM Amit Kucheria wrote: > > On Mon, Mar 16, 2020 at 8:22 PM Daniel Lezcano > wrote: > > > > On 09/03/2020 05:54, andy.tang@nxp.com wrote: > > > From: Yuantian Tang > > > > > > Cooling-maps doesn't have to be a required property because there may > > > be no cooling device on system, or there are no enough cooling devices for > > > each thermal zone in multiple thermal zone cases since cooling devices > > > can't be shared. > > > So make this property optional to remove such limitations. > > > > > > For thermal zones with no cooling-maps, there could be critic trips > > > that can trigger CPU reset or shutdown. So they still can take actions. > > > > > > Signed-off-by: Yuantian Tang > > Reviewed-by: Amit Kucheria > > > > > Amit, I'm about to pick this patch, it will collide with the yaml > > conversion changes. > > Thanks for the headsup. I can fixup v3 when I respin. > > However, I've always interpreted this binding as follows: > - cooling-maps should be mandatory for active and passive trip types > otherwise there will be no cooling > - cooling-maps make no sense for critical trip type since we're > invoking system shutdown > - cooling-maps are optional for hot trip types. > > Is this your understanding too? > > We should be able to enforce this in YAML. Rui, Daniel, What do you think about the above interpretation of the cooling-maps bindings? Regards, Amit