From mboxrd@z Thu Jan 1 00:00:00 1970 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 8D07963D5; Thu, 15 Aug 2024 14:30:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723732258; cv=none; b=hpXphTEAF1dHdCS6U9yG9JwIvf2e1UHhlWNeU7px2KY3xX31GtN4kaB+Inj1AhzlxkXENTVRiT8owKEZ644lxVRnxW/FgFoo2c+4WRxDL5CZO7TZzyxTq+3Kp80Hr9BAojnCcy2sQQCz4RJj/OkkvKIrCSE0VmtenZ2tFsWo58c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723732258; c=relaxed/simple; bh=2bNieHbKqbvEPzPirvjopy/G8WKw6GauGGTx9P8pJD4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=B4hAlt9Mymxmz78htQDD6mdWHoci25W1w0p6Tw5yoXh/gTAsea4kaUDb+iSD6rmwDXZx82BHIYV1DytmO8f1Ul106LR5V0pGyHP5LkzkawbBQ7YUr68HxQhi5YptUqPwo6kk/X86yYvpcmTS8Jl4dejTKmKlZk8xbMGFfsh+/ZM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sbQ9Rx7l; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="sbQ9Rx7l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7F4DC32786; Thu, 15 Aug 2024 14:30:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723732258; bh=2bNieHbKqbvEPzPirvjopy/G8WKw6GauGGTx9P8pJD4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sbQ9Rx7lFQ0B/Y/KBc6B32YMNLyRk7qF38poFiKU1OLkwpFBbBcgW3EOs4OMH9M3b VCNXMYRAV0EN7tzLQox10ODlbbhx/dgxFmh5Ovs5YBIgoE9GGScEw3misvdHxaFoQD m12N6PGkBD45zs9Ql7dTkZ037ORQ3pdS5mpmB4uM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Rob Herring , Krzysztof Kozlowski , Daniel Lezcano Subject: [PATCH 5.10 124/352] dt-bindings: thermal: correct thermal zone node name limit Date: Thu, 15 Aug 2024 15:23:10 +0200 Message-ID: <20240815131924.046286358@linuxfoundation.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240815131919.196120297@linuxfoundation.org> References: <20240815131919.196120297@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Krzysztof Kozlowski commit 97e32381d0fc6c2602a767b0c46e15eb2b75971d upstream. 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 (thus 10 for the pattern after leading fixed character). 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: stable@vger.kernel.org Signed-off-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20240702145248.47184-1-krzysztof.kozlowski@linaro.org Signed-off-by: Daniel Lezcano Signed-off-by: Greg Kroah-Hartman --- Documentation/devicetree/bindings/thermal/thermal-zones.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml index 68398e7e8655..606b80965a44 100644 --- a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml +++ b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml @@ -49,7 +49,10 @@ properties: to take when the temperature crosses those thresholds. patternProperties: - "^[a-zA-Z][a-zA-Z0-9\\-]{1,12}-thermal$": + # Node name is limited in size due to Linux kernel requirements - 19 + # characters in total (see THERMAL_NAME_LENGTH, including terminating NUL + # byte): + "^[a-zA-Z][a-zA-Z0-9\\-]{1,10}-thermal$": type: object description: Each thermal zone node contains information about how frequently it -- 2.45.2