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 A46621A76B1; Tue, 30 Jul 2024 17:17:49 +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=1722359869; cv=none; b=lrbz7MIZDpDjIxso0suGFii3n8lStT8FZQ2vPUWIBfVqjemeFjqlZaTz/xWV/0UBOlDU/DEPC8KfswCBTU9LTTyPJy7feDEtCJpqGBUqC6ew3+v6H8C5B8CRt0dZm3v6tyMw9Xbt+ekGZsQToH6qX8+O9TIbba+tFLmdg9QxC3Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722359869; c=relaxed/simple; bh=PM+Jpe9f8/YbFjXYi6+YtkX/I1j6FrclMQMcmNh0Mkg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uPzs0oo5U4lfuZCIN0owmi9WmttiqUvGBaDSocJSluedOzuPhphUqEB4s/wD1yqxGF/5PsKfESIZf68rHKblvNKGI9+FyfedzxlRok558DM0zR8Szu3E7iW61qMND/zfCGOpW2uAEGwqIWl08oPjllPL6vl5oAjpSnLmxW89mtY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IYtU054O; 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="IYtU054O" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27D34C4AF0C; Tue, 30 Jul 2024 17:17:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722359869; bh=PM+Jpe9f8/YbFjXYi6+YtkX/I1j6FrclMQMcmNh0Mkg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IYtU054OLs62WxDUty0Pa4sLdYUpow4Laur8BSLgPd5DJScYqYZypIVkROv3Qb9sW 9pMEpoYKmzjq/cHaV20FcUeu7Z6500/fKP7b+mTYCFf3NAQJHjIzGqVBdGgkJwzrEp hu1HW2ARbTbHZDYd6VEzHaiega9WLbZWm3vOoTIo= 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 6.10 547/809] dt-bindings: thermal: correct thermal zone node name limit Date: Tue, 30 Jul 2024 17:47:03 +0200 Message-ID: <20240730151746.359528600@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240730151724.637682316@linuxfoundation.org> References: <20240730151724.637682316@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 6.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(-) --- 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