All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ioana Ciornei <ioana.ciornei@nxp.com>
To: Russell King - ARM Linux admin <linux@armlinux.org.uk>
Cc: Ioana Ciocoi Radulescu <ruxandra.radulescu@nxp.com>,
	Andrew Lunn <andrew@lunn.ch>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH net-next 3/3] net: dpaa2-mac: add backplane link mode support
Date: Thu, 4 Feb 2021 15:40:05 +0000	[thread overview]
Message-ID: <20210204154003.mslw54uqzyzfokfr@skbuf> (raw)
In-Reply-To: <20210204145124.GZ1463@shell.armlinux.org.uk>

On Thu, Feb 04, 2021 at 02:51:24PM +0000, Russell King - ARM Linux admin wrote:
> On Wed, Jan 20, 2021 at 10:19:01PM +0000, Ioana Ciornei wrote:
> > On Tue, Jan 19, 2021 at 03:36:09PM +0000, Russell King wrote:
> > > Add support for backplane link mode, which is, according to discussions
> > > with NXP earlier in the year, is a mode where the OS (Linux) is able to
> > > manage the PCS and Serdes itself.
> > 
> > Indeed, DPMACs in TYPE_BACKPLANE can have both their PCS and SerDes managed
> > by Linux (since the firmware is not touching these).
> > That being said, DPMACs in TYPE_PHY (the type that is already supported
> > in dpaa2-mac) can also have their PCS managed by Linux (no interraction
> > from the firmware's part with the PCS, just the SerDes).
> > 
> > All in all, this patch is not needed for this particular usecase, where
> > the switch between 1000Base-X and SGMII is done by just a minor
> > reconfiguration in the PCS, without the need for SerDes changes.
> > 
> > Also, with just the changes from this patch, a interface connected to a
> > DPMAC in TYPE_BACKPLANE is not even creating a phylink instance. It's
> > mainly because of this check from dpaa2-eth:
> > 
> > 	if (dpaa2_eth_is_type_phy(priv)) {
> > 		err = dpaa2_mac_connect(mac);
> > 
> > 
> > I would suggest just dropping this patch.
> 
> Hi Ioana,
> 
> So what is happening with this series given our discussions off-list?
> 

Let's also accept TYPE_BACKPLANE as you suggested.

> Do I resend it as-is?
> 

For the net-next, you would also need the following diff on top of your changes in patch 3/3:

--- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h
+++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h
@@ -695,7 +695,9 @@ static inline unsigned int dpaa2_eth_rx_head_room(struct dpaa2_eth_priv *priv)

 static inline bool dpaa2_eth_is_type_phy(struct dpaa2_eth_priv *priv)
 {
-       if (priv->mac && priv->mac->attr.link_type == DPMAC_LINK_TYPE_PHY)
+       if (priv->mac &&
+           (priv->mac->attr.link_type == DPMAC_LINK_TYPE_PHY ||
+            priv->mac->attr.link_type == DPMAC_LINK_TYPE_BACKPLANE))
                return true;

        return false;

Would you mind amending your commit with this and resending the series?

Thanks,
Ioana



      reply	other threads:[~2021-02-04 15:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-19 15:35 [PATCH net-next 0/3] dpaa2: add 1000base-X support Russell King - ARM Linux admin
2021-01-19 15:35 ` [PATCH net-next 1/3] net: pcs: add pcs-lynx 1000BASE-X support Russell King
2021-01-20 22:03   ` Ioana Ciornei
2021-01-19 15:36 ` [PATCH net-next 2/3] net: dpaa2-mac: add " Russell King
2021-01-20 22:23   ` Ioana Ciornei
2021-01-19 15:36 ` [PATCH net-next 3/3] net: dpaa2-mac: add backplane link mode support Russell King
2021-01-20 22:19   ` Ioana Ciornei
2021-01-20 22:35     ` Russell King - ARM Linux admin
2021-02-04 14:51     ` Russell King - ARM Linux admin
2021-02-04 15:40       ` Ioana Ciornei [this message]

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=20210204154003.mslw54uqzyzfokfr@skbuf \
    --to=ioana.ciornei@nxp.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=netdev@vger.kernel.org \
    --cc=ruxandra.radulescu@nxp.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.