Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7181818rdb; Wed, 3 Jan 2024 07:13:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbbAbZS0k2Q3kLHUHHtekcW5J37kzfRF1yJ8V95kvUDHLM2ybnMu1S63V9lIOlh9SalbRg X-Received: by 2002:a17:902:d2c2:b0:1d3:ccc0:80a5 with SMTP id n2-20020a170902d2c200b001d3ccc080a5mr1343103plc.68.1704294836154; Wed, 03 Jan 2024 07:13:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704294836; cv=none; d=google.com; s=arc-20160816; b=YULNdHJfs3tRgcg3GI82d3NxY9UZ05bx2pnIGwj9/eXCUqRlV0EjeKRmwGYq+ajPkO yjHBg4iJoB4c42r/QjtU74IyMVPUXly4QKYOh7lm6wPhsgEEJntX6J7jcWjPM3BUphag BTlbRJlttmWVC8w0oAe5uyi2G22AgobQBMMfU3JW4CNdvztmEQ/WoSil+qmHi2gl0FZa hZcF5R0Uz5LYSPvFzyIuGKX/qYD7RL1M9TIwmr2yrM0AMhS7e0djvpUKkKVPbVzZHU4Y lt6+pg2+qpIDOEt2CD356/VY9xz37laaZ2WQJKiO3j64dHNlBc2wuoBa0Ar1/q5QKEON iqqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Zltjy1rF9uuQyPL6SOqwR75qSpOoqyCo/uXbp1gdVNU=; fh=3MFx5QY8FuQdy2L737k7ZJf5Z22ExdX1ar53XD9oRUw=; b=jy0OtCnBPYF0QJnhM3+3pFGDr6eaWy+ARmCRwgGifXRo90Z9mvUnaTb3lHoH0ZX4ld U/5mELyfyo+wqueiuko69CCP1MxLLdWEkTFGIcTcd0MuFV1TQhnl9Oe4c/PA3h6P/5XZ uE8rGR2oLtkvY93NOOWWP32FPGaB1Y3Fh9AthldLHgWDoy6sk+iPGD3v+/yRipXg6rWu zK5fU5puw65xfO/JGvScvzaaoMltYlz5rb59Yx4tzNJhewqhLzY3J/OBI1kTjBdADnsO bZqUIFYhWvjtdXGFJ5JtiOFE8KsmQmYXzRnA12wW4qBFIiukFWhFVf+TVYpXM2A6OOvz X5UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TIUKMdGI; spf=pass (google.com: domain of linux-kernel+bounces-15685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15685-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id v23-20020a63f857000000b005cdfc01b502si19265637pgj.337.2024.01.03.07.13.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 07:13:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TIUKMdGI; spf=pass (google.com: domain of linux-kernel+bounces-15685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15685-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B6615B23849 for ; Wed, 3 Jan 2024 15:13:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F4551B29E; Wed, 3 Jan 2024 15:13:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TIUKMdGI" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7A941A71F; Wed, 3 Jan 2024 15:13:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2ECBBC433CB; Wed, 3 Jan 2024 15:13:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704294792; bh=bFm0Z1sKJZItmcrSwYlr++E/l6Wo9Z9RcEYIw1gv8/k=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=TIUKMdGIxBTc4tUVBKOOy03kAHheVOgCdA51aToMHMZ3YINlt8SR9K5e66IhWeB5U zxG67KSJBbgpwPAaQZff1JkqfEfErcjUrKEWcQx+7DCcDCNvcRAjVmemKiMiHx8n6V 4dix+n/6EfSLm7kDjjlcnKTgdyh9wQGxqpO1aT8Ec7FSzHcrCvgeyL7b9IHpR2IMnC hs/h09zfO6J+pln+zbQCz9kEz+9vdjetSzsnVuyS0bhQPOD5Wg3zVo6y30skbhn4pn 1C/BgAnXSyByvbAMPPs9eeEJFgaONm+1RmIACU2lPkn8cnZjrUQZhX8tQevBifBfFf QmmgCKVUQaRJA== Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2cc9fa5e8e1so114008371fa.3; Wed, 03 Jan 2024 07:13:12 -0800 (PST) X-Gm-Message-State: AOJu0YxHmCm3TXmE7jYJzpLvY5VRIi3LGCy987pZPjZmwJq3ra6rfXV/ dPu/KttpdmpJxPbNjUn4GltKf/KN4yxSAiLPYw== X-Received: by 2002:a2e:98d5:0:b0:2cc:843a:ec97 with SMTP id s21-20020a2e98d5000000b002cc843aec97mr7360555ljj.43.1704294790370; Wed, 03 Jan 2024 07:13:10 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240103142051.111717-1-krzysztof.kozlowski@linaro.org> In-Reply-To: <20240103142051.111717-1-krzysztof.kozlowski@linaro.org> From: Rob Herring Date: Wed, 3 Jan 2024 08:12:58 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: thermal: correct thermal zone node name limit To: Krzysztof Kozlowski Cc: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Krzysztof Kozlowski , Conor Dooley , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Amit Kucheria , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 3, 2024 at 7:20=E2=80=AFAM Krzysztof Kozlowski wrote: > > Linux kernel uses thermal zone node name during registering thermal > zones and has a hard-coded limit of 20 characters, including terminating > NUL byte. The bindings expect node names to finish with '-thermal' > which is eight bytes long, thus we have only 11 characters for the reset > of the node name, not 12. > > Reported-by: Rob Herring > Closes: https://lore.kernel.org/all/CAL_JsqKogbT_4DPd1n94xqeHaU_J8ve5K09W= OyVsRX3jxxUW3w@mail.gmail.com/ > Fixes: 1202a442a31f ("dt-bindings: thermal: Add yaml bindings for thermal= zones") > Cc: > Signed-off-by: Krzysztof Kozlowski > --- > Documentation/devicetree/bindings/thermal/thermal-zones.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml= b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml > index 4a8dabc48170..bbc883fd4044 100644 > --- a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml > +++ b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml > @@ -49,7 +49,7 @@ properties: > to take when the temperature crosses those thresholds. > > patternProperties: > - "^[a-zA-Z][a-zA-Z0-9\\-]{1,12}-thermal$": > + "^[a-zA-Z][a-zA-Z0-9\\-]{1,11}-thermal$": Now off by 1 instead of 2. It should be 1 starting char, 1-10 chars, and 8 chars for "-thermal". Can you also add a comment that this length is due to the kernel. Rob