Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2658520rdh; Wed, 27 Sep 2023 08:56:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGUw2SSXqm1QfuQQ872GPu3jx9F+20HlVx0B3G9XkyxKreczV0+LkKdCvcI6/wcBz8uTwzi X-Received: by 2002:a05:6a20:5617:b0:14d:792:aafb with SMTP id ir23-20020a056a20561700b0014d0792aafbmr2067029pzc.54.1695830218555; Wed, 27 Sep 2023 08:56:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695830218; cv=none; d=google.com; s=arc-20160816; b=pvc0iIp5X/qxRJLYXl3TXU12YSskjqvYawPsT5wJL+Z8UHZR5veDkrG4GbWhUKd7JN ZMh8rfT8SmypPO2Kv7EGIN4K8trwynDc2jvg7dMM0AAOiLNWIkCKZMTWC23sGSS2jCmk wcGjiHtz8Awj1qoNFAJ+JBVTRWLHOba46XDp6U30JSuEsuSKFnXLJBdLBptGoLm/3k5Y xvuqVASLdnqv3TD7IxDUDiw4KN+OwrEcH/DbnyXvkac3MDtODt6X0AQ5LJE62A4QL3rn t4Xq8I8dq9LcS99xurComSNv5BacjgKBeP4e8PErxmaWi6Jzg0SMTddQw3fiP780oijx zG2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DAfhHSuOXrRipxkESPBtERdAL21//NCSz2JY7BIVYe4=; fh=kxAA8Y1PswhM5UL3IrRPdtSbqNSc6VMbml/85B4RLeo=; b=BrafmlCD2B9FWgZapV8vZqY6v5naGv1sDnXWvXPcUWqtV006qgXJ4wSQZzRJPFsggP lDdcwOLYqcOoLTj5qeSuosIPCcOPe3YSUX2bBCvk772TNPKgymqIW6NsvyBoW/n56NwN Bh66Yha5o59Dhr/jfN2OE4sTstrgA8Ps4OchJRfh8G3nzFUPhxj9qBj5xPhxLak6g8PW PRnECosV8OVGmNHOXRpwtY/vsblfI2Gn6FDURMuLaGVK7+nVbgYS6P8mUMq3zTmIQyxj bfgw+c1aTa+Vqly9NnVs+GmAm+5Fspd/22JT/96tUxeM120lg1I3jWnaZfa88DDtLvwQ dBxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A9hxyKZq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id s8-20020a170902ea0800b001c3a2e70278si14021612plg.437.2023.09.27.08.56.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 08:56:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A9hxyKZq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5AC0D808E0D8; Wed, 27 Sep 2023 08:36:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232363AbjI0PgA (ORCPT + 99 others); Wed, 27 Sep 2023 11:36:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232466AbjI0Pf5 (ORCPT ); Wed, 27 Sep 2023 11:35:57 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 660DF198; Wed, 27 Sep 2023 08:35:55 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22173C433C8; Wed, 27 Sep 2023 15:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695828955; bh=Vbcpyf8NR6obj9hRrWqEruzSZGutGz1yExgH+iLFr+Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=A9hxyKZqoQ2qZv3jGkVqTnIuauZkwqAo2+Age9iyTVmJ9qkjfNF2zLfHQdX6ZmKvq /MCMSKw1PdhwHoijPT73JL2aDQ0FRhCZBxtDXzgq1aIHrolCMSGN8PV1xGdvC9Yo/N SaKBJjDjwaY0350cc14w8W6kRTrIkWAlxuCjbMPtlk7Sdxl7Ty2d9QwCz4LEMk1iZg UG7S3AK3FzWGN3aNMkPdcjQV2IhwZ0MMXFhV7Wml8GdgtvJLTTMkFDQ5wdtO77y6go p41vvBRfxmJRvcf5Tl4fR2ff2okcVbOhz6cLpmmfAFgSGwB2nPMf9vqUlwr3ALHsQ/ 5b3WlrtnhXRAQ== Date: Wed, 27 Sep 2023 16:35:49 +0100 From: Conor Dooley To: Rob Herring Cc: Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Krzysztof Kozlowski , Conor Dooley , Ray Jui , Scott Branden , Broadcom internal kernel review list , Ray Jui , Scott Branden , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] dt-bindings: PCI: brcm,iproc-pcie: Fix 'msi' child node schema Message-ID: <20230927-utmost-copied-6982126a7f00@spud> References: <20230926155351.31117-1-robh@kernel.org> <20230926155613.33904-3-robh@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1BjGV0efq9T3tTST" Content-Disposition: inline In-Reply-To: <20230926155613.33904-3-robh@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 27 Sep 2023 08:36:04 -0700 (PDT) --1BjGV0efq9T3tTST Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 26, 2023 at 10:56:09AM -0500, Rob Herring wrote: > The 'msi' child node schema is missing constraints on additional properti= es. > It turns out it is incomplete and properties for it are documented in the > parent node by mistake. Move the reference to msi-controller.yaml and > the custom properties to the 'msi' node. Adding 'unevaluatedProperties' > ensures all the properties in the 'msi' node are documented. >=20 > With the schema corrected, a minimal interrupt controller node is needed > to properly decode the interrupt properties since the example has > multiple interrupt parents. I suppose this is an ABI break, but the patch just makes the binding match the example and intent. Feels like of all the patches doing the unevaluatedProperty additions, this one is the most deserving of a fixes tag, since the original binding just seems to be completely wrong? Otherwise, Acked-by: Conor Dooley Thanks, Conor. >=20 > Signed-off-by: Rob Herring > --- > .../bindings/pci/brcm,iproc-pcie.yaml | 24 ++++++++++++------- > 1 file changed, 16 insertions(+), 8 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.yaml b= /Documentation/devicetree/bindings/pci/brcm,iproc-pcie.yaml > index 6730d68fedc7..0e07ab61a48d 100644 > --- a/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.yaml > +++ b/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.yaml > @@ -12,7 +12,6 @@ maintainers: > =20 > allOf: > - $ref: /schemas/pci/pci-bus.yaml# > - - $ref: /schemas/interrupt-controller/msi-controller.yaml# > =20 > properties: > compatible: > @@ -63,20 +62,24 @@ properties: > =20 > msi: > type: object > + $ref: /schemas/interrupt-controller/msi-controller.yaml# > + unevaluatedProperties: false > + > properties: > compatible: > items: > - const: brcm,iproc-msi > =20 > - msi-parent: true > + interrupts: > + maxItems: 4 > =20 > - msi-controller: true > + brcm,pcie-msi-inten: > + type: boolean > + description: > + Needs to be present for some older iProc platforms that requir= e the > + interrupt enable registers to be set explicitly to enable MSI > =20 > - brcm,pcie-msi-inten: > - type: boolean > - description: > > - Needs to be present for some older iProc platforms that require the > - interrupt enable registers to be set explicitly to enable MSI > + msi-parent: true > =20 > dependencies: > brcm,pcie-ob-axi-offset: ["brcm,pcie-ob"] > @@ -104,6 +107,11 @@ examples: > - | > #include > =20 > + gic: interrupt-controller { > + interrupt-controller; > + #interrupt-cells =3D <3>; > + }; > + > pcie@18012000 { > compatible =3D "brcm,iproc-pcie"; > reg =3D <0x18012000 0x1000>; > --=20 > 2.40.1 >=20 --1BjGV0efq9T3tTST Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZRRL1QAKCRB4tDGHoIJi 0vG2AQDluSVffOKOHbIEMmIpNz0g1yHoArvULfqpNTho1ylwlQEA/EmGD6/g/1ZF dKNKjfPaJCXwB3Jg7O7xQ9vpU0G2xA0= =4PdT -----END PGP SIGNATURE----- --1BjGV0efq9T3tTST--