[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230927-utmost-copied-6982126a7f00@spud>
Date: Wed, 27 Sep 2023 16:35:49 +0100
From: Conor Dooley <conor@...nel.org>
To: Rob Herring <robh@...nel.org>
Cc: Bjorn Helgaas <bhelgaas@...gle.com>,
Lorenzo Pieralisi <lpieralisi@...nel.org>,
Krzysztof WilczyĆski <kw@...ux.com>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Ray Jui <rjui@...adcom.com>,
Scott Branden <sbranden@...adcom.com>,
Broadcom internal kernel review list
<bcm-kernel-feedback-list@...adcom.com>,
Ray Jui <ray.jui@...adcom.com>,
Scott Branden <scott.branden@...adcom.com>,
linux-pci@...r.kernel.org, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/3] dt-bindings: PCI: brcm,iproc-pcie: Fix 'msi' child
node schema
On Tue, Sep 26, 2023 at 10:56:09AM -0500, Rob Herring wrote:
> The 'msi' child node schema is missing constraints on additional properties.
> 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.
>
> 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 <conor.dooley@...rochip.com>
Thanks,
Conor.
>
> Signed-off-by: Rob Herring <robh@...nel.org>
> ---
> .../bindings/pci/brcm,iproc-pcie.yaml | 24 ++++++++++++-------
> 1 file changed, 16 insertions(+), 8 deletions(-)
>
> 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:
>
> allOf:
> - $ref: /schemas/pci/pci-bus.yaml#
> - - $ref: /schemas/interrupt-controller/msi-controller.yaml#
>
> properties:
> compatible:
> @@ -63,20 +62,24 @@ properties:
>
> msi:
> type: object
> + $ref: /schemas/interrupt-controller/msi-controller.yaml#
> + unevaluatedProperties: false
> +
> properties:
> compatible:
> items:
> - const: brcm,iproc-msi
>
> - msi-parent: true
> + interrupts:
> + maxItems: 4
>
> - msi-controller: true
> + 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
>
> - 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
>
> dependencies:
> brcm,pcie-ob-axi-offset: ["brcm,pcie-ob"]
> @@ -104,6 +107,11 @@ examples:
> - |
> #include <dt-bindings/interrupt-controller/arm-gic.h>
>
> + gic: interrupt-controller {
> + interrupt-controller;
> + #interrupt-cells = <3>;
> + };
> +
> pcie@...12000 {
> compatible = "brcm,iproc-pcie";
> reg = <0x18012000 0x1000>;
> --
> 2.40.1
>
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists