[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <71d970bc-fe6f-91e7-80c1-711af1af5530@linaro.org>
Date: Thu, 8 Sep 2022 16:43:13 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Bhupesh Sharma <bhupesh.sharma@...aro.org>,
devicetree@...r.kernel.org
Cc: linux-arm-msm@...r.kernel.org, agross@...nel.org,
bhupesh.linux@...il.com, linux-kernel@...r.kernel.org,
robh+dt@...nel.org, netdev@...r.kernel.org,
Bjorn Andersson <andersson@...nel.org>,
Rob Herring <robh@...nel.org>, Vinod Koul <vkoul@...nel.org>,
David Miller <davem@...emloft.net>
Subject: Re: [PATCH 4/4] dt-bindings: net: snps,dwmac: Update interrupt-names
On 07/09/2022 22:49, Bhupesh Sharma wrote:
> As commit fc191af1bb0d ("net: stmmac: platform: Fix misleading
> interrupt error msg") noted, not every stmmac based platform
> makes use of the 'eth_wake_irq' or 'eth_lpi' interrupts.
>
> So, update the 'interrupt-names' inside 'snps,dwmac' YAML
> bindings to reflect the same.
>
> Cc: Bjorn Andersson <andersson@...nel.org>
> Cc: Rob Herring <robh@...nel.org>
> Cc: Vinod Koul <vkoul@...nel.org>
> Cc: David Miller <davem@...emloft.net>
> Signed-off-by: Bhupesh Sharma <bhupesh.sharma@...aro.org>
> ---
> Documentation/devicetree/bindings/net/snps,dwmac.yaml | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
> index f89ca308d55f..4d7fe4ee3d87 100644
> --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
> +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
> @@ -105,10 +105,12 @@ properties:
>
> interrupt-names:
> minItems: 1
> - items:
> - - const: macirq
> - - const: eth_wake_irq
> - - const: eth_lpi
> + maxItems: 3
> + contains:
> + enum:
> + - macirq
> + - eth_wake_irq
> + - eth_lpi
>
This gives quite a flexibility, e.g. missing macirq. Instead should be
probably a list with enums:
items:
- const: macirq
- enum: [eth_wake_irq, eth_lpi]
- enum: [eth_wake_irq, eth_lpi]
Best regards,
Krzysztof
Powered by blists - more mailing lists