All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alvin Šipraga" <alvin.sipraga@analog.com>
To: "Stolniceanu, Iustin" <Iustin.Stolniceanu@analog.com>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Parthiban Veerasooran <parthiban.veerasooran@microchip.com>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	"Schmitt, Marcelo" <marcelo.schmitt@analog.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Regus, Ciprian" <ciprian.regus@analog.com>
Subject: Re: [PATCH net-next 4/5] net: ethernet: adi: adin1110: Add OA TC6 protocol support for ADIN1110
Date: Fri, 6 Nov 2026 13:12:40 +0100	[thread overview]
Message-ID: <au3C27DWOcZiMLxb@analog.com> (raw)
In-Reply-To: <IA3PR03MB84531C29DE02BFFDE950BA43F2762@IA3PR03MB8453.namprd03.prod.outlook.com>

On Fri, Nov 06, 2026 at 11:43:07AM +0000, Stolniceanu, Iustin wrote:
> On Wed, Nov 04, 2026 at 03:26:07PM +0100, Alvin Šipraga wrote:
> > For the above, it wasn't quite clear to me why you don't call
> > adin1110_port_set_forwarding_state()?
> 
> It does the same as the generic adin1110_net_open(), which also only 
> sets the port state and the MAC address. The extra step in 
> adin1110_port_set_forwarding_state() is adin1110_setup_rx_mode(), but 
> the core calls ndo_set_rx_mode_async right after ndo_open, which already 
> does that with the right flags. On the first open port_priv->flags is still 0, 
> so calling it from open would briefly turn off broadcast reception. 
> The hardware forwarding branch only applies to the ADIN2111. 

OK, makes sense. I still feel like the probe path could be a bit more
unified so as to avoid this duplication, but maybe it's more
straightforward to achieve when tc6 support is added for ADIN2111.

> 
> 
> > Would it make sense to use the async mode for the non-tc6 case as well?
> > Then you can drop the work there and have the same ndo callback for both.
> 
> It would, but it changes the generic SPI path, which is out of scope 
> for this series, and that path needs its own regression testing 
> (including ADIN2111). I'd prefer to do it as a separate follow-up after this 
> series, if that's OK.

Fair enough.

> > > +struct mii_bus;
> >
> > A mistake here? Doesn't seem related.
> 
> It is needed. adin1110.c includes oa_tc6.h before linux/phy.h, and the
> Clause 45 MDIO prototypes in oa_tc6.h use struct mii_bus. Without the
> forward declaration a W=1 build fails with "'struct mii_bus' declared
> inside parameter list". I've explained this in the v2 commit message.

Sounds like this should be a separate patch. Since no drivers are
affected by it right now (I guess because they include linux/phy.h
before oa_tc6.h), it can probably just go into net-next as an earlier
patch in this series?

Kind regards,
Alvin

  reply	other threads:[~2026-11-06 12:12 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03 16:09 [PATCH net-next 0/5] net: ethernet: adi: adin1110: Add OPEN Alliance TC6 support Iustin Stolniceanu
2026-11-03 16:09 ` [PATCH net-next 1/5] net: ethernet: oa_tc6: Allow custom reset settle time values Iustin Stolniceanu
2026-11-04 14:10   ` Alvin Šipraga
2026-11-06 11:23     ` Stolniceanu, Iustin
2026-11-03 16:09 ` [PATCH net-next 2/5] net: ethernet: oa_tc6: Add support for MDIO indirect access Iustin Stolniceanu
2026-11-04 14:08   ` Alvin Šipraga
2026-11-06 11:25     ` Stolniceanu, Iustin
2026-11-03 16:09 ` [PATCH net-next 3/5] dt-bindings: net: adi,adin1110: Add adi,spi-oa-tc6 Iustin Stolniceanu
2026-11-04 14:12   ` Alvin Šipraga
2026-11-06 11:29     ` Stolniceanu, Iustin
2026-11-03 16:09 ` [PATCH net-next 4/5] net: ethernet: adi: adin1110: Add OA TC6 protocol support for ADIN1110 Iustin Stolniceanu
2026-11-04 14:26   ` Alvin Šipraga
2026-11-04 21:06     ` Andrew Lunn
2026-11-06 11:43     ` Stolniceanu, Iustin
2026-11-06 12:12       ` Alvin Šipraga [this message]
2026-11-04 16:10   ` sashiko-bot
2026-11-06 11:37     ` Stolniceanu, Iustin
2026-11-03 16:09 ` [PATCH net-next 5/5] net: phy: adin1100: Skip the soft reset on ADIN1110/ADIN2111 Iustin Stolniceanu
2026-11-04 14:29   ` Alvin Šipraga
2026-11-04 21:16     ` Andrew Lunn
2026-11-03 20:49 ` [PATCH net-next 0/5] net: ethernet: adi: adin1110: Add OPEN Alliance TC6 support Andrew Lunn
2026-11-04  8:06   ` Stolniceanu, Iustin
2026-11-04 14:59     ` Andrew Lunn
2026-11-04 15:14       ` Stolniceanu, Iustin
2026-11-03 20:54 ` Andrew Lunn

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=au3C27DWOcZiMLxb@analog.com \
    --to=alvin.sipraga@analog.com \
    --cc=Iustin.Stolniceanu@analog.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=ciprian.regus@analog.com \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@kernel.org \
    --cc=hkallweit1@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=marcelo.schmitt@analog.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=parthiban.veerasooran@microchip.com \
    --cc=robh@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.