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 X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24725C4360F for ; Wed, 3 Apr 2019 07:36:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D7D6A2084C for ; Wed, 3 Apr 2019 07:36:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="VdV0a0om" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D7D6A2084C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=iIGKot8EGUYzt/I8UaMaaD3TED1RroJp+260WXlf+TE=; b=VdV0a0omGOpfqbZj2BCC0e0Ed XxWhM6lD1bXIs692YJ+4n8U7jElC9RA3Qn+4cNgoCY5DpvXSCwrFAGNjNA5Zo18UD0ESCW4L8TtoX 0cY/7HlXjeq1/M3sYcmqsGgUpMXrJ6EB+ZjoR+kYOJh1MSSPG4toa3iNp5nUHvvx/vAVoBhdeflzp TmcEvzZqFcpLsUILeKz9elrMy/H5lie+tModjD3y28BbWGyNXPwhNSHGWgV6URdjCausWh37gOLS3 fJEqvaycU8ovPGFY6frKd4hrLr+oQ+7L8aIjIVakOAnxNlmEfk066zLTb28RByWr0hAZwLIndLTyD N2ffc57Zw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBaRE-00042w-0o; Wed, 03 Apr 2019 07:36:00 +0000 Received: from relay11.mail.gandi.net ([217.70.178.231]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBaRA-00042D-3l; Wed, 03 Apr 2019 07:35:57 +0000 Received: from localhost (aaubervilliers-681-1-89-125.w90-88.abo.wanadoo.fr [90.88.30.125]) (Authenticated sender: maxime.ripard@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 54248100003; Wed, 3 Apr 2019 07:35:52 +0000 (UTC) Date: Wed, 3 Apr 2019 09:35:51 +0200 From: Maxime Ripard To: Rob Herring Subject: Re: [PATCH v2 1/2] dt-bindings: mtd: Add YAML schemas for the generic NAND options Message-ID: <20190403073551.ym7nbqwcdpicwo6e@flea> References: <74b8a52ce98b09d7906f988c107793a86c0c5f6b.1554216856.git-series.maxime.ripard@bootlin.com> MIME-Version: 1.0 In-Reply-To: User-Agent: NeoMutt/20180716 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190403_003556_341026_105720CF X-CRM114-Status: GOOD ( 10.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Chen-Yu Tsai , Boris Brezillon , MTD Maling List , Miquel Raynal , Frank Rowand , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Content-Type: multipart/mixed; boundary="===============5210425458190382073==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============5210425458190382073== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7jrsntgdy4khsrgx" Content-Disposition: inline --7jrsntgdy4khsrgx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Rob, On Tue, Apr 02, 2019 at 08:20:58PM -0500, Rob Herring wrote: > > + nand-ecc-strength: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + minimum: 1 > > While I wished this worked, these 2 have to be under 'allOf'. > Unfortunately, this will also silently pass validation in json-schema. Unfortunately, I'm not sure I fully get how the ref system is supposed to work yet. Can you elaborate a bit on why we should put the ref and whatever constraint we have in an allOf? Should we do the same in a separate schema that would reference another entire schema (like the second patch does with the first one)? Thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --7jrsntgdy4khsrgx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXKRiVwAKCRDj7w1vZxhR xRftAP4gOwOHrQ42gDtK4z/l2QP1qkrHcR+4gv4h2w9jqy3upwEAxHJsybyBI6rp +JNw/3x4TYPZfGVK2ilH9eycRhV9WwA= =6tkC -----END PGP SIGNATURE----- --7jrsntgdy4khsrgx-- --===============5210425458190382073== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============5210425458190382073==--