All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
To: Conor Dooley <conor@kernel.org>
Cc: Lorenzo Bianconi <lorenzo@kernel.org>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Felix Fietkau <nbd@nbd.name>, Sean Wang <sean.wang@mediatek.com>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org,
	upstream@airoha.com
Subject: Re: [PATCH net-next 09/13] dt-bindings: net: airoha: Add airoha,npu phandle property
Date: Wed, 5 Feb 2025 21:54:43 +0100	[thread overview]
Message-ID: <Z6PQEzvvCdDKQSnl@lore-desk> (raw)
In-Reply-To: <20250205-patronage-finisher-bbfbdb5b7dbc@spud>

[-- Attachment #1: Type: text/plain, Size: 3295 bytes --]

> On Wed, Feb 05, 2025 at 08:01:26PM +0000, Conor Dooley wrote:
> > On Wed, Feb 05, 2025 at 08:33:13PM +0100, Lorenzo Bianconi wrote:
> > > > On Wed, Feb 05, 2025 at 07:21:28PM +0100, Lorenzo Bianconi wrote:
> > > > > Introduce the airoha,npu property for the npu syscon node available on
> > > > > EN7581 SoC. The airoha Network Processor Unit (NPU) is used to offload
> > > > > network traffic forwarded between Packet Switch Engine (PSE) ports.
> > > > > 
> > > > > Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> > > > > ---
> > > > >  Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml | 8 ++++++++
> > > > >  1 file changed, 8 insertions(+)
> > > > > 
> > > > > diff --git a/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml b/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml
> > > > > index c578637c5826db4bf470a4d01ac6f3133976ae1a..6388afff64e990a20230b0c4e58534aa61f984da 100644
> > > > > --- a/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml
> > > > > +++ b/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml
> > > > > @@ -63,6 +63,12 @@ properties:
> > > > >    "#size-cells":
> > > > >      const: 0
> > > > >  
> > > > > +  airoha,npu:
> > > > > +    $ref: /schemas/types.yaml#/definitions/phandle
> > > > > +    description:
> > > > > +      Phandle to the syscon node used to configure the NPU module
> > > > > +      used for traffic offloading.
> > > > 
> > > > Why do you need a phandle for this, instead of a lookup by compatible?
> > > > Do you have multiple instances of this ethernet controller on the
> > > > device, that each need to look up a different npu?
> > > 
> > > actually not, but looking up via the compatible string has been naked by
> > > Krzysztof on a different series [0].
> > 
> > Hmm, I disagree with adding phandles that are not needed. I don't agree
> > that there's no reuse, if you can treat the phandle identically on a new
> > device, in all likelihood, that node should have a fallback to the
> > existing one.
> 
> Also, where is the binding for this npu? It looks like a brand-new
> module that you're adding a driver for in this series and a phandle to
> the node for here but I see no binding for it.

The driver loads the NPU node just as syscon so I have not added the binding
for it to the series. I will add it in v2.

Regards,
Lorenzo

> 
> > 
> > That said, the bigger problem in what you link is the ABI break caused by
> > requiring the presence of a new node. I'd NAK that patch too.
> > 
> > > 
> > > Regards,
> > > Lorenzo
> > > 
> > > [0] https://patchwork.kernel.org/project/linux-pci/patch/20250115-en7581-pcie-pbus-csr-v1-2-40d8fcb9360f@kernel.org/
> > > 
> > > > 
> > > > > +
> > > > >  patternProperties:
> > > > >    "^ethernet@[1-4]$":
> > > > >      type: object
> > > > > @@ -132,6 +138,8 @@ examples:
> > > > >                       <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
> > > > >                       <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
> > > > >  
> > > > > +        airoha,npu = <&npu>;
> > > > > +
> > > > >          #address-cells = <1>;
> > > > >          #size-cells = <0>;
> > > > >  
> > > > > 
> > > > > -- 
> > > > > 2.48.1
> > > > > 
> > > 
> > > 
> > 
> > 
> 
> 



[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2025-02-05 20:57 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-05 18:21 [PATCH net-next 00/13] Introduce flowtable hw offloading in airoha_eth driver Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 01/13] net: airoha: Move airoha_eth driver in a dedicated folder Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 02/13] net: airoha: Move definitions in airoha_eth.h Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 03/13] net: airoha: Move reg/write utility routines " Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 04/13] net: airoha: Move register definitions in airoha_regs.h Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 05/13] net: airoha: Move DSA tag in DMA descriptor Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 06/13] net: airoha: Enable support for multiple net_devices Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 07/13] net: airoha: Move REG_GDM_FWD_CFG() initialization in airoha_dev_init() Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 08/13] net: airoha: Rename airoha_set_gdm_port_fwd_cfg() in airoha_set_vip_for_gdm_port() Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 09/13] dt-bindings: net: airoha: Add airoha,npu phandle property Lorenzo Bianconi
2025-02-05 19:10   ` Conor Dooley
2025-02-05 19:33     ` Lorenzo Bianconi
2025-02-05 20:01       ` Conor Dooley
2025-02-05 20:28         ` Conor Dooley
2025-02-05 20:54           ` Lorenzo Bianconi [this message]
2025-02-06 18:26             ` Conor Dooley
2025-02-06 20:32               ` Lorenzo Bianconi
2025-02-05 20:52         ` Lorenzo Bianconi
2025-02-06 18:24           ` Conor Dooley
2025-02-05 18:21 ` [PATCH net-next 10/13] net: airoha: Introduce PPE initialization via NPU Lorenzo Bianconi
2025-02-06 23:06   ` kernel test robot
2025-02-07  1:21   ` kernel test robot
2025-02-05 18:21 ` [PATCH net-next 11/13] net: airoha: Introduce flowtable offload support Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 12/13] net: airoha: Add loopback support for GDM2 Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 13/13] net: airoha: Introduce PPE debugfs support Lorenzo Bianconi

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=Z6PQEzvvCdDKQSnl@lore-desk \
    --to=lorenzo.bianconi@redhat.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=conor+dt@kernel.org \
    --cc=conor@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=lorenzo@kernel.org \
    --cc=matthias.bgg@gmail.com \
    --cc=nbd@nbd.name \
    --cc=netdev@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=pabeni@redhat.com \
    --cc=robh@kernel.org \
    --cc=sean.wang@mediatek.com \
    --cc=upstream@airoha.com \
    /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.