All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Gerhard Engleder <gerhard@engleder-embedded.com>, netdev@vger.kernel.org
Cc: davem@davemloft.net, kuba@kernel.org, edumazet@google.com,
	pabeni@redhat.com, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org
Subject: Re: [PATCH net-next v3 2/6] dt-bindings: net: tsnep: Allow additional interrupts
Date: Sat, 24 Sep 2022 11:17:56 +0200	[thread overview]
Message-ID: <b7e44e61-4beb-7b94-01e5-d217c546114d@linaro.org> (raw)
In-Reply-To: <20220923202911.119729-3-gerhard@engleder-embedded.com>

On 23/09/2022 22:29, Gerhard Engleder wrote:
> Additional TX/RX queue pairs require dedicated interrupts. Extend
> binding with additional interrupts.
> 
> Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com>
> ---
>  .../bindings/net/engleder,tsnep.yaml          | 37 ++++++++++++++++++-
>  1 file changed, 36 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/net/engleder,tsnep.yaml b/Documentation/devicetree/bindings/net/engleder,tsnep.yaml
> index 37e08ee744a8..ce1f1bd413c2 100644
> --- a/Documentation/devicetree/bindings/net/engleder,tsnep.yaml
> +++ b/Documentation/devicetree/bindings/net/engleder,tsnep.yaml
> @@ -20,7 +20,23 @@ properties:
>      maxItems: 1
>  
>    interrupts:
> -    maxItems: 1
> +    minItems: 1
> +    maxItems: 8
> +
> +  interrupt-names:
> +    minItems: 1
> +    maxItems: 8
> +    items:
> +      pattern: '^mac|txrx-[1-7]$'

No. The order of items must be fixed. Now you allow any combination,
which is exactly what we do not want.

> +    description:
> +      If more than one interrupt is available, then interrupts are
> +      identified by their names.

Not really. Interrupts are fixed, unless explicitly mentioned otherwise.

> +      "mac" is the main interrupt for basic MAC features and the first
> +      TX/RX queue pair. If only a single interrupt is available, then
> +      it is assumed that this interrupt is the "mac" interrupt.
> +      "txrx-[1-7]" are the interrupts for additional TX/RX queue pairs.
> +      These interrupt names shall start with index 1 and increment the
> +      index by 1 with every further TX/RX queue pair.

Skip last three sentences - they will become redundant after
implementing proper items.
>  
>    dma-coherent: true
>  
> @@ -78,4 +94,23 @@ examples:
>                  };
>              };
>          };

Missing line break.


Best regards,
Krzysztof


  reply	other threads:[~2022-09-24  9:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-23 20:29 [PATCH net-next v3 0/6] tsnep: multi queue support and some other improvements Gerhard Engleder
2022-09-23 20:29 ` [PATCH net-next v3 1/6] dt-bindings: net: tsnep: Allow dma-coherent Gerhard Engleder
2022-09-24  9:15   ` Krzysztof Kozlowski
2022-09-24 18:11     ` Gerhard Engleder
2022-09-25  7:41       ` Krzysztof Kozlowski
2022-09-25  8:14         ` Gerhard Engleder
2022-09-26  8:55           ` Krzysztof Kozlowski
2022-09-26 17:46             ` Gerhard Engleder
2022-09-28  7:17               ` Krzysztof Kozlowski
2022-09-23 20:29 ` [PATCH net-next v3 2/6] dt-bindings: net: tsnep: Allow additional interrupts Gerhard Engleder
2022-09-24  9:17   ` Krzysztof Kozlowski [this message]
2022-09-24 19:06     ` Gerhard Engleder
2022-09-23 20:29 ` [PATCH net-next v3 3/6] tsnep: Move interrupt from device to queue Gerhard Engleder
2022-09-23 20:29 ` [PATCH net-next v3 4/6] tsnep: Support multiple TX/RX queue pairs Gerhard Engleder
2022-09-23 20:29 ` [PATCH net-next v3 5/6] tsnep: Add EtherType RX flow classification support Gerhard Engleder
2022-09-23 20:29 ` [PATCH net-next v3 6/6] tsnep: Use page pool for RX Gerhard Engleder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b7e44e61-4beb-7b94-01e5-d217c546114d@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=gerhard@engleder-embedded.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.