Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6698918rdb; Tue, 2 Jan 2024 10:10:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4EfuhF8bq6qpYq+blvyWaLQs2OqGqgkfjt94LZbdCIyp4Mto1Yjcvasm5vgIgsxUsGYvK X-Received: by 2002:a17:906:2214:b0:a27:ee7c:e899 with SMTP id s20-20020a170906221400b00a27ee7ce899mr1353642ejs.19.1704219007282; Tue, 02 Jan 2024 10:10:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704219007; cv=none; d=google.com; s=arc-20160816; b=0NAj0pbHNbs/Hsax0mtL/e8iDgbf34hAWvbQzK4qi61rTJTqpWaneQe/eV9ibkZxXh c8jSEF+uJyy3ecsSC5TmHlj9r9iipxxQF6M/xZiJf9xnFG9F3tjGmrAZjuzqDUUR2W+R GlZecsYtgDMhKRDJtDIJvMwbtER0CN8F6aYdr/9/2YmzX0kkyNDMWTb7cr5ZuIU0GKiI nltTqVgCRrLA8G9wLciIxvW5it19pDsBqF5SqWo46fLW79SxSWAXqEg/9NF5bl0bLoGj oIvBQoBitdZCZln0vLpdxOBtx71DCizRFz2t3MuAaHhmXXOX052Ta5b0uxXtnEuLtb8U Hm5A== 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=v4HfFKQ8AU0YsVDnX7RrFfpDlrgO9TVdq3sUadtJny0=; fh=7q/PxDhYX/utFAVhVKYC9sxOpUqdRur4fb4uqM9VRFg=; b=ONOOs2fR0z5OXNlycaCzdfLgiVsWcHvPxD+UOqHqwdveCnIdFBC0gjJP2G6qyNpXGV RI9arN0hvXMPvMlhoW5iI0HpDb1uNOZXYwPm3XoxJfQR8deHprG030rSjhyGobLjcLA9 xEpnIX7dTOkHaK4BeMGlj2OqeTjHZ0sBv32SEorbpwDbbIIg3PiMSW0QOU4rJeN+Q9Bk uZJXXpPkDPP5Mj4zWC3p+m3X8KIZKy/wruupVBCRwoCtPOqxNrHl/DakCGo9wQXCZVvY XRo94c40KaO1DOGhUfnoy8sytAyx9FpQyqJ7muTp3KFQstTbr3J09z2X1k7AuoxCX9Jn wzDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KVIyP+y+; spf=pass (google.com: domain of linux-kernel+bounces-14694-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14694-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g18-20020a1709063b1200b00a28014a099asi1732924ejf.494.2024.01.02.10.10.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 10:10:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14694-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KVIyP+y+; spf=pass (google.com: domain of linux-kernel+bounces-14694-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14694-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 09D2C1F232D1 for ; Tue, 2 Jan 2024 18:10:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F0D4156E1; Tue, 2 Jan 2024 18:09:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KVIyP+y+" 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 CBCB8156D2; Tue, 2 Jan 2024 18:09:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C3F4C433C7; Tue, 2 Jan 2024 18:09:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704218996; bh=0B4MGO3nEzwJGG528F5URY4URve6DriUG1N7zW1et+Q=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KVIyP+y+D2TBQ3d2+wAIcHBatKMgGdadyoZYeoCJP0by22tFPtnlUYXL7SGhlM4O8 2K5u9HFuPnaLO2o4dwgQn49aR4UFRRwR4V+R/NOKZxnvapnPreVFV2MMq1b1PVXIel fhiayKYC3YcNYUJoIPlRbXXDWOJvVP+7ijwwAKdmpnPN/J/+wd8DeW5eUjuhLkUbKQ JHd5TDDCbD7p0Dj0y/2CoKNLxyoOC0aUEozbbsmWw0/vZf7yPENtcGjIiFX96Pt1MY mtDtJ6CVy0V/4/5bmbPG7X6i4nezHdQr3AXvI4MsOwZPdxkMXR1OGxd6GAkH7s7FsQ i3re/XN3rSd4Q== Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2cceb5f0918so36575831fa.2; Tue, 02 Jan 2024 10:09:56 -0800 (PST) X-Gm-Message-State: AOJu0YyL3dWnjEJygco+o/zqDgtZB4fNjKv9LGl5vNEJ+smyRCF56Uh0 6IOiv7KFIolgkfnCMREnXDXucCxOqPL7dJG/IQ== X-Received: by 2002:a05:651c:1a10:b0:2cc:cbd9:b3d7 with SMTP id by16-20020a05651c1a1000b002cccbd9b3d7mr5115618ljb.28.1704218994526; Tue, 02 Jan 2024 10:09:54 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231209171612.250868-1-krzysztof.kozlowski@linaro.org> In-Reply-To: <20231209171612.250868-1-krzysztof.kozlowski@linaro.org> From: Rob Herring Date: Tue, 2 Jan 2024 11:09:42 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: dts: juno: align thermal zone names with bindings To: Krzysztof Kozlowski Cc: Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Krzysztof Kozlowski , Conor Dooley , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Dec 9, 2023 at 10:16=E2=80=AFAM Krzysztof Kozlowski wrote: > > Thermal bindings require thermal zone node names to match > certain patterns: > > juno.dtb: thermal-zones: 'big-cluster', 'gpu0', 'gpu1', 'little-cluster= ', 'pmic', 'soc' > do not match any of the regexes: '^[a-zA-Z][a-zA-Z0-9\\-]{1,12}-therm= al$', 'pinctrl-[0-9]+' You've just traded this warning for these: 6 thermal-zones: 'little-cluster-thermal' does not match any of the regexes: '^[a-zA-Z][a-zA-Z0-9\\-]{1,12}-thermal$', 'pinctrl-[0-9]+' 4 thermal-zones: gpu1-thermal: 'trips' is a required property 4 thermal-zones: gpu0-thermal: 'trips' is a required property 4 thermal-zones: big-cluster-thermal: 'trips' is a required property Last I checked this, it looked like the length of the child names was limited because the thermal subsys uses the node names for its naming which is limited to 20 chars (with null). Though the regex here allows for 21 chars without nul. Looks like a double off by one error. The thought I had at the time was to make the kernel drop '-thermal' from its names. Might be an (Linux) ABI issue if userspace cares (I think it shouldn't). Also, I'm not sure how the kernel handles the names overflowing. Maybe it is fine and we can just extend the length in the schema from 12 to 18 (plus the 1 starting char). Rob