Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6839842rdb; Tue, 2 Jan 2024 15:58:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IEE51lT3o1UDTqke0icSDNffKb5yce47dtd/IZEehQyZsKJm/gpdK3dF38BPsfYD+5kAeUu X-Received: by 2002:a05:622a:1716:b0:428:1e83:43c6 with SMTP id h22-20020a05622a171600b004281e8343c6mr6975360qtk.68.1704239909766; Tue, 02 Jan 2024 15:58:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704239909; cv=none; d=google.com; s=arc-20160816; b=a8Cobj9QXlW9E+Guq7K00zKAlOsddBg0Vn+2h5c0Z+JeJWKB49MCFSdxaV3SNDZiS6 okrEfve4koj10FU9FCe5LZ6W31BjYJrlnmXYMKPp0Fpo9ydE9NVI4DFFVuZyFuVsm6t5 49P6ViL39CeFN9XMs3d+T8nOatNo3lH1hKG3dEIbdnj33N3EkW53c/SpHX0YHCMLLO+r kWbLb1nWN7ewnH4V7hrN6W8wifr2aFONLYWw0dnIozUOLfN1wUe8BqsgIUpFF1irwtwk zaSiR4/apRFcY1EX1kWB/GGh7LF6viZIZNFZn4tCMVPPl32sUIOLHNnUpbQ2eLAbNW9p j5kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9PgThQSIJodFtb3WpPw4ayYs6YtC3CUUo/jh3s7sMX0=; fh=px+JsGYPZoc5lPDpQnKdT0QYjsPN1dtBsHhlrZ0ceAY=; b=iETfyBObORNgAgaA2ucslyudyEUGt201miOT8s/97WKcEwptT5cD7fgB4fmDLGuIu2 l//dXDD46A2+1TiEAZ9NY4ZSRs94av7l959W9m6aYMzEbqLspTrZ80K26JbpB8ijeYWl /e7bNjlfwNf7+jNO4O1gXlTqw4f4OhPbsQi39erE+PV2Tt2gYxBW8f0o6Az66OQ0fSqA 6WgL50//Sz1vytrpB9FNIWPLLAYnMbFXSQAQ0YK3+lNA85UFQ8/epnt2x3WEDDQeVxFS Paqfv8pMkeSjUNkW380QS5fJWs6F7Y3qShPpCKgLoKWD6Tg0vA/qBEmsnMN+NEVJB6X9 eh6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QqKXyvap; spf=pass (google.com: domain of linux-kernel+bounces-14988-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14988-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t29-20020a05622a181d00b00425840f70a2si28163390qtc.427.2024.01.02.15.58.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 15:58:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14988-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QqKXyvap; spf=pass (google.com: domain of linux-kernel+bounces-14988-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14988-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3068B1C22BF6 for ; Tue, 2 Jan 2024 23:58:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 827AE1799F; Tue, 2 Jan 2024 23:58:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QqKXyvap" 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 A893817980; Tue, 2 Jan 2024 23:58:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48B06C433C9; Tue, 2 Jan 2024 23:58:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704239897; bh=Dbcu2HMKJdgZOFIcgm2z6JbgCtq1iCqB4x9KNyEY55s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QqKXyvapVjE9s3RZop7zgv7u/8fP9h+EKsC6yP3Pg1o5Z4T2tNaljwwv+Olm+9LIK HDhJvTRCWf3yf7y2A2mONyEk5K/VHW1xM4oTg+eoYDBzAW97t4OEBW2l+oC8eub58y gxUbyhwfFtmQfryQs98cSA9fplQKteA5qkTgk559Rtw4olfEJi0dtU9SP4JDrm3Sgn 999Oqf8F9g1Ff0eV8+52uxUKrek6KPT95kooSqg47nRa2P/K7MlALm5sMJoikBHoar TQ3ftFH/0NLR7MJNE+iKEIwsTRlIdg2Bx6Ab7SBWtO8izUBaWPF+ZCV3bX12E3uxxi KxjPWm/qsNn1w== Received: (nullmailer pid 3968482 invoked by uid 1000); Tue, 02 Jan 2024 23:58:15 -0000 Date: Tue, 2 Jan 2024 16:58:15 -0700 From: Rob Herring To: Krzysztof Kozlowski Cc: David Heidelberg , Viresh Kumar , Nishanth Menon , Stephen Boyd , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Bjorn Andersson , Viresh Kumar , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: opp: switch inner and outer min/maxItems rules for opp-hz Message-ID: <20240102235815.GA3700567-robh@kernel.org> References: <20231229191038.247258-1-david@ixit.cz> <2c9e91c7-8588-4260-8f5d-22c822019f62@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2c9e91c7-8588-4260-8f5d-22c822019f62@linaro.org> On Sat, Dec 30, 2023 at 03:17:21PM +0100, Krzysztof Kozlowski wrote: > On 29/12/2023 20:10, David Heidelberg wrote: > > Fixes issue as: > > ``` > > Drop, it's not RST, but commit msg. > > > arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dtb: opp-table: opp-200000000:opp-hz:0: [200000000, 0, 0, 150000000, 0, 0, 0, 0, 300000000] is too long > > ``` > > > > Fixes: 3cb16ad69bef ("dt-bindings: opp: accept array of frequencies") > > > > Signed-off-by: David Heidelberg > > --- > > Documentation/devicetree/bindings/opp/opp-v2-base.yaml | 5 ++--- > > 1 file changed, 2 insertions(+), 3 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/opp/opp-v2-base.yaml b/Documentation/devicetree/bindings/opp/opp-v2-base.yaml > > index e2f8f7af3cf4..86d3aa0eb435 100644 > > --- a/Documentation/devicetree/bindings/opp/opp-v2-base.yaml > > +++ b/Documentation/devicetree/bindings/opp/opp-v2-base.yaml > > @@ -55,10 +55,9 @@ patternProperties: > > to relate the values to their clocks or the order in which the clocks > > need to be configured and that is left for the implementation > > specific binding. > > - minItems: 1 > > - maxItems: 32 > > items: > > - maxItems: 1 > > + minItems: 1 > > + maxItems: 32 > > This does not look like correct fix. The original code looked fine - > only one item is allowed in each sub-element (array). This one is special being 64-bit values so we have an exception in property-units.yaml. The constraints here don't get used in decoding the dtb and the default way of 1 outer element is used. It doesn't look like opp-hz needs to be a matrix as it is really just an array. Perhaps it should just be changed to an array type. Alternatively, adding 'items: { maxItems: 1 }' to the definition in property-units.yaml fixes the issue as well. Though we can fix this, I'm looking into if we have other cases where we need this to work as-is. There's probably some room for improvement in how matrix dimensions are handled. Rob