Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3706641pxb; Mon, 24 Jan 2022 15:56:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjDXabTcB58uQ1PPJypE8hePGUr2m0V9iBXlCaxD0miXi5145P4Sn1dwEMtWN9vZb+YMJw X-Received: by 2002:a05:6a00:1501:b0:4ca:c3ab:b845 with SMTP id q1-20020a056a00150100b004cac3abb845mr878873pfu.84.1643068468751; Mon, 24 Jan 2022 15:54:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643068468; cv=none; d=google.com; s=arc-20160816; b=XKWlZOZpbBLIabKFH1iVDf60eWSRGVUHu6bf6lajxkDTu98+kpr0vHpypyCNWlrwSx 7dkfQUCzp52xfz/7/Q7N12XY3bbjbxm8biaIwFXx/oAECnqkVB+SDOeAJHRK86eEYxrK JFP8SiJ1AMzY+m2iv38CqZ70v0Ps98BDDCNeQSymWZZXWsEyAZ/zOJgTYDPhr+QhIZRp tASaTRSYZkEvZ3Mzq9sIQfG2n4a0GuyocOxMmTt74GNaN0XLjTFnOCBl3DZ+ZWg/xe+q OzwEo2v1+Y4eSINdF4zgJa70khQ0h+0342OXUue3QVMHj7CC0kAK885M8OOpKJRN4Q4H RYIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=D6saxTvplYC4Cbf9nLyD6ZD7GxRRAYL9mjquZVaGZyw=; b=qI5YGos8A7jWRc75yhXcCVdBk2xmUud1E18wIsLAxCRVjrWu0xAj3VERuwmxPzJ1oK cccIgt2kEDmB6O7Jv4lF7uaXlfJ6i9lP6VfF3E3gCJgje1pf7ywmkWN0AD4LA862ZoV+ WUdi2AHpMRO14IGn9cxHXAi6R5V+DKVRz8MMUgKvcyZP+1rnD4S39f4VLbwdArjGO/aR +6R/yIUiuYXpg3ONv9K7y+Zmoz7uip5mwozbQGHwKXzlCLC/ZxEfQXnAhMsrInHmtzhZ Bewxfb6iaSrpNHgBlJzth1uXjy+HMcWPUp0chqKcy4My7IKzP/8xrAgmIiKoW9eWW5v4 SZGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OsygMvCF; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si558426pgc.243.2022.01.24.15.54.16; Mon, 24 Jan 2022 15:54:28 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=OsygMvCF; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2362516AbiAXXm3 (ORCPT + 99 others); Mon, 24 Jan 2022 18:42:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1843521AbiAXXEF (ORCPT ); Mon, 24 Jan 2022 18:04:05 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35811C06E003; Mon, 24 Jan 2022 13:16:11 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CABFA61496; Mon, 24 Jan 2022 21:16:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A42BFC340E4; Mon, 24 Jan 2022 21:16:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058970; bh=s9tsxmFlqICboirL075gBp3+3Ny1m13WJnEkExbZ/tc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OsygMvCFr6Nq+9QhyFNmpH8xxml2RcEDgbX6RkYcIlsYzvRR7XAoY4egeb7lRGVJD wGxjoJPHl8v/Rwb/nJDv9e3zl1UaffQWt2UMeVj5KY83zuhCd5tv7DSMCZpgghuCzp nKKZMMvFtYwZcClnkuoZDoj7SjtTMULhKApRPNQg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kieran Bingham , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Rob Herring , Sasha Levin Subject: [PATCH 5.16 0461/1039] dt-bindings: thermal: Fix definition of cooling-maps contribution property Date: Mon, 24 Jan 2022 19:37:30 +0100 Message-Id: <20220124184140.783230585@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Niklas Söderlund [ Upstream commit 49bcb1506f2e095262c01bda7fd1c0db524c91e2 ] When converting the thermal-zones bindings to yaml the definition of the contribution property changed. The intention is the same, an integer value expressing a ratio of a sum on how much cooling is provided by the device to the zone. But after the conversion the integer value is limited to the range 0 to 100 and expressed as a percentage. This is problematic for two reasons. - This do not match how the binding is used. Out of the 18 files that make use of the property only two (ste-dbx5x0.dtsi and ste-hrefv60plus.dtsi) sets it at a value that satisfy the binding, 100. The remaining 16 files set the value higher and fail to validate. - Expressing the value as a percentage instead of a ratio of the sum is confusing as there is nothing to enforce the sum in the zone is not greater then 100. This patch restore the pre yaml conversion description and removes the value limitation allowing the usage of the bindings to validate. Fixes: 1202a442a31fd2e5 ("dt-bindings: thermal: Add yaml bindings for thermal zones") Reported-by: Kieran Bingham Signed-off-by: Niklas Söderlund Link: https://lore.kernel.org/r/20211109103045.1403686-1-niklas.soderlund+renesas@ragnatech.se Signed-off-by: Rob Herring Signed-off-by: Sasha Levin --- .../devicetree/bindings/thermal/thermal-zones.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml index a07de5ed0ca6a..2d34f3ccb2572 100644 --- a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml +++ b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml @@ -199,12 +199,11 @@ patternProperties: contribution: $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 100 description: - The percentage contribution of the cooling devices at the - specific trip temperature referenced in this map - to this thermal zone + The cooling contribution to the thermal zone of the referred + cooling device at the referred trip point. The contribution is + a ratio of the sum of all cooling contributions within a + thermal zone. required: - trip -- 2.34.1