From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 324B3C433F5 for ; Wed, 4 May 2022 06:41:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6820011205F; Wed, 4 May 2022 06:41:06 +0000 (UTC) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8C8B611205F for ; Wed, 4 May 2022 06:41:04 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CE695B821D7; Wed, 4 May 2022 06:41:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 929DBC385A4; Wed, 4 May 2022 06:40:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651646459; bh=ZGMwwfSt9WgGcP9EzHW/QosFc70Yb/XaCBfaIMon8lM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hCMa156AuRtjnImdRRFb6sjNT7gi2K+aKH0x8uKbL7AEODCLcmpA+AldqhNahLoMc Jjbn4PU2sZC0QO3tUog7PiYYrqIfJDpXhjQPR0ah9UBAo6hM2LqRyEviiRxk8BR/Z/ PswEhJLlhaaJETbJ+cDB+HgHVFfdIRtcQWjx3W6kmEYtvsvtdX1D61teQWllRNYd4Y 4rq0yVjTAy3gemypN42SU8Wvxydjxbsf9n9Yu7PohyC0omGj3kKtLN8XGs6TxWmKd5 RbuiHnFactE1ob6Dd26hg53PXFe++MOjqEkVBKu+OdQv2rpx3HjFyo1wUYQL3DAF3f 4Lj9rl6MCVe6w== Date: Wed, 4 May 2022 12:10:55 +0530 From: Vinod Koul To: Rob Herring Subject: Re: [PATCH] dt-bindings: Drop redundant 'maxItems/minItems' in if/then schemas Message-ID: References: <20220503162738.3827041-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220503162738.3827041-1-robh@kernel.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ulf Hansson , Vignesh Raghavendra , "Rafael J. Wysocki" , linux-iio@vger.kernel.org, Alexandre Belloni , dri-devel@lists.freedesktop.org, Peter Ujfalusi , Thierry Reding , linux-mtd@lists.infradead.org, Laurent Pinchart , Fabrice Gasnier , Miquel Raynal , linux-phy@lists.infradead.org, Jonathan Hunter , linux-clk@vger.kernel.org, linux-rtc@vger.kernel.org, Abel Vesa , Anson Huang , Richard Weinberger , Daniel Lezcano , Kishon Vijay Abraham I , Chen-Yu Tsai , linux-serial@vger.kernel.org, Jakub Kicinski , Zhang Rui , Paolo Abeni , Wolfgang Grandegger , devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-pm@vger.kernel.org, linux-can@vger.kernel.org, Mark Brown , Marc Kleine-Budde , Han Xu , Alessandro Zummo , Stephen Boyd , Greg Kroah-Hartman , Florian Fainelli , linux-mmc@vger.kernel.org, Kieran Bingham , Dario Binacchi , netdev@vger.kernel.org, Niklas =?iso-8859-1?Q?S=F6derlund?= , Krzysztof Kozlowski , "David S. Miller" , Jonathan Cameron Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 03-05-22, 11:27, Rob Herring wrote: > Another round of removing redundant minItems/maxItems when 'items' list is > specified. This time it is in if/then schemas as the meta-schema was > failing to check this case. > > If a property has an 'items' list, then a 'minItems' or 'maxItems' with the > same size as the list is redundant and can be dropped. Note that is DT > schema specific behavior and not standard json-schema behavior. The tooling > will fixup the final schema adding any unspecified minItems/maxItems. For phy: Acked-By: Vinod Koul -- ~Vinod