Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7225457rdb; Wed, 3 Jan 2024 08:29:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGZZ1XforC0bbQwfpENEy7LTPFdYjRwCY9IN1cu5UXDpP3O9SYMWBXZkthZvLadCvksFvsW X-Received: by 2002:a17:902:c70a:b0:1d0:4cde:6e33 with SMTP id p10-20020a170902c70a00b001d04cde6e33mr7627238plp.56.1704299386405; Wed, 03 Jan 2024 08:29:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704299386; cv=none; d=google.com; s=arc-20160816; b=qavCxVIKXRU1TjgWL8aOxeUwsjma1LXGYiZodYfi4vumN61lmyRi2hO0MYV2/hjHF3 1j3F356nfMGbo46LquctiCD6AWIUaML77u1saiM33wanP1Vd4N60yBGnE1XRa7Z3W+5i nSXIuZRQ628npNqnvvgn6KAtKGKUXa1IZuGXhsY0NQPw26rFXzRn9tj7wtEusXXPZwr9 iBDfAGYkQ5eaEFY2zKSX+ppcNCSReIZyNocavzKw8iesI1IhWtcjhFBiIZL/R3Kn3MuX cwYb1uuhnty+l66TzGCj1Zlx68Fww6KILp/2SdYDpxIQYZ5t+tWlXQ+/nGbEQaf31G12 xTZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=az19ubiIuB1XQs18jJiJ3GzVSuYQgFZqp/BptEnEKEs=; fh=laJ//vs1YmewiF7vgYh92b3RvpmIp1bm2++fgcPCJLU=; b=LiM5X0VdezeKFcdysF3HNsqWsieZ+3AIYzUfa7/exAiMMkodIUGb9D4Ix9jYlZFVh6 Zv2JohVYgKmVrUP1T9SGv3+K6X7jRfKEUjrfitT8QBOG+JVtwiWBrQcSVNAHW7Ort8ob NiuYE+KgQqmF0Pu3FDhw4fMSQJV0c5FXcy0EoVnmlp2yD2bBr+w9upT0AWpYA/690XxH 0X70LUBqYui5OK9+nE27tHso262OlgqovEzJ3B17wU6X4L5PwQ3JVomHkCK35ZC529tu FGEw+t9grh+kOA+GbMs9MwVkwo24NBQ5dZbL0qGtCfxpv6XQi8MWZ0ZreKYOwBoVXPi/ 2IJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d48aEIxX; spf=pass (google.com: domain of linux-kernel+bounces-15750-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15750-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t8-20020a170902b20800b001d47f21d647si12203787plr.561.2024.01.03.08.29.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 08:29:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15750-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d48aEIxX; spf=pass (google.com: domain of linux-kernel+bounces-15750-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15750-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0B18E28242E for ; Wed, 3 Jan 2024 16:29:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E382A1BDCD; Wed, 3 Jan 2024 16:29:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="d48aEIxX" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD01B1BDC5 for ; Wed, 3 Jan 2024 16:29:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a27874c861aso456573866b.1 for ; Wed, 03 Jan 2024 08:29:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704299373; x=1704904173; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=az19ubiIuB1XQs18jJiJ3GzVSuYQgFZqp/BptEnEKEs=; b=d48aEIxXM7X5PRh/Db19JwfZFU1a8XfISZQ4f9MrpX638cw2WOn0GNKj7hIlw4L5TZ MmxOxfpQjCFCn/u38O+Q0R+5WhHc8136V/PWvalgs8GIzJaFzksmL/ttpUIiEz73Nyxn rRuOZXfMWbWmDfI3DgIb0gEgOnUBgiOGWAr14AzSF2796QoFXk8n2fNa3sFQ0cjv6xRP 1qah3QNzbfkBxMUJzCZgkg0D9MSMW52AaY7Lx7jJGralMhiykPBnfIrsxcvU4rO/LKwI 69fuwejvU0uohH4VuG0RcgmbNqFWtw9a/n3Bh7vN7xKnu5G76CJPzbEYp3c8opDfffAn Z43g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704299373; x=1704904173; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=az19ubiIuB1XQs18jJiJ3GzVSuYQgFZqp/BptEnEKEs=; b=MQ5HfhuHx2/C+kb1iVw4Y8sOlHfr8hUa4mh4MvDjlcME01WatxaK9cny4VhQfaMC2l DjoyWhHhHzXC7SwWqWUelg5l2c9CJAXZnhIzBbBJ7YEPdEkzz2NjkXcaA/H/sQq9yafw gHGzuZvhXGfpv9rXE0WfGc1siRoQrxqhlgfbn/E0KaFIkER3LMGQKsZVZtLQiGSiPhJt NjMwFLCT3QrcNY/sNU6h7nMwrceOrMDyczjEgk6vbNBbUPpoI+hjnpCc9T+l208r8/hD 99WOmm67tyV4fEe9SVekZEPn3zamgJTDvqIsEM0+AdJiNsyZcFNhzSzh2/ZPftoncJo8 D6ww== X-Gm-Message-State: AOJu0YzEsHYklWd+m0btMxgkvO3qELrXMSXGcy9zFT7gIPZdHR8z00Ht EMgeQVuqBwrtbrkIOmRyGhZGgjvFwkj/1A== X-Received: by 2002:a17:907:36c3:b0:a27:f7a1:2ad2 with SMTP id bj3-20020a17090736c300b00a27f7a12ad2mr2936599ejc.69.1704299372972; Wed, 03 Jan 2024 08:29:32 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id vl8-20020a17090730c800b00a27eddc3dcbsm3322242ejb.198.2024.01.03.08.29.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Jan 2024 08:29:32 -0800 (PST) Message-ID: <103a9eb8-c955-4a56-b9dd-9b1eea94e285@linaro.org> Date: Wed, 3 Jan 2024 17:29:30 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] dt-bindings: thermal: correct thermal zone node name limit Content-Language: en-US To: Rob Herring 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 References: <20240103142051.111717-1-krzysztof.kozlowski@linaro.org> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9Cz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2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 03/01/2024 16:12, Rob Herring wrote: > On Wed, Jan 3, 2024 at 7:20 AM 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_J8ve5K09WOyVsRX3jxxUW3w@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". Why off by 2? prefix can be up to 11 bytes, plus 8 bytes for "-thermal" and 1 byte for NUL. This gives 11+8+1=20, exactly the size used in Linux kernel. > > Can you also add a comment that this length is due to the kernel. Sure Best regards, Krzysztof