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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41C63C4321E for ; Wed, 4 May 2022 06:41:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345020AbiEDGog (ORCPT ); Wed, 4 May 2022 02:44:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240187AbiEDGof (ORCPT ); Wed, 4 May 2022 02:44:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9409818B13; Tue, 3 May 2022 23:41:00 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 38CF46153E; 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 Cc: devicetree@vger.kernel.org, Krzysztof Kozlowski , Abel Vesa , Stephen Boyd , Laurent Pinchart , Kieran Bingham , Jonathan Cameron , Lars-Peter Clausen , Ulf Hansson , Thierry Reding , Jonathan Hunter , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Kishon Vijay Abraham I , Alessandro Zummo , Alexandre Belloni , Chen-Yu Tsai , Greg Kroah-Hartman , Mark Brown , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Niklas =?iso-8859-1?Q?S=F6derlund?= , Anson Huang , Fabrice Gasnier , Han Xu , Dario Binacchi , Florian Fainelli , Maxime Ripard , Peter Ujfalusi , linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-iio@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-phy@lists.infradead.org, linux-rtc@vger.kernel.org, linux-serial@vger.kernel.org, alsa-devel@alsa-project.org, linux-pm@vger.kernel.org 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> Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.org 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