All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: phy: XLGMII define and usage in PHYLINK
@ 2020-03-12 17:10 Jose Abreu
  2020-03-12 17:10 ` [PATCH net-next 1/2] net: phy: Add XLGMII interface define Jose Abreu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jose Abreu @ 2020-03-12 17:10 UTC (permalink / raw)
  To: netdev
  Cc: Joao Pinto, Jose Abreu, Andrew Lunn, Florian Fainelli,
	Heiner Kallweit, Russell King, linux-kernel

Adds XLGMII defines and usage in PHYLINK.

Patch 1/2, adds the define for it, whilst 2/2 adds the usage of it in
PHYLINK.

---
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---

Jose Abreu (2):
  net: phy: Add XLGMII interface define
  net: phylink: Add XLGMII support

 drivers/net/phy/phylink.c | 27 +++++++++++++++++++++++++++
 include/linux/phy.h       |  3 +++
 2 files changed, 30 insertions(+)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH net-next 1/2] net: phy: Add XLGMII interface define
  2020-03-12 17:10 [PATCH net-next 0/2] net: phy: XLGMII define and usage in PHYLINK Jose Abreu
@ 2020-03-12 17:10 ` Jose Abreu
  2020-03-12 17:10 ` [PATCH net-next 2/2] net: phylink: Add XLGMII support Jose Abreu
  2020-03-15  3:55 ` [PATCH net-next 0/2] net: phy: XLGMII define and usage in PHYLINK David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: Jose Abreu @ 2020-03-12 17:10 UTC (permalink / raw)
  To: netdev
  Cc: Joao Pinto, Jose Abreu, Andrew Lunn, Florian Fainelli,
	Heiner Kallweit, Russell King, linux-kernel

Add a define for XLGMII interface.

Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>

---
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
 include/linux/phy.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/phy.h b/include/linux/phy.h
index e72dbd0d2d6a..fb62f1469aa2 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -94,6 +94,7 @@ typedef enum {
 	PHY_INTERFACE_MODE_RTBI,
 	PHY_INTERFACE_MODE_SMII,
 	PHY_INTERFACE_MODE_XGMII,
+	PHY_INTERFACE_MODE_XLGMII,
 	PHY_INTERFACE_MODE_MOCA,
 	PHY_INTERFACE_MODE_QSGMII,
 	PHY_INTERFACE_MODE_TRGMII,
@@ -165,6 +166,8 @@ static inline const char *phy_modes(phy_interface_t interface)
 		return "smii";
 	case PHY_INTERFACE_MODE_XGMII:
 		return "xgmii";
+	case PHY_INTERFACE_MODE_XLGMII:
+		return "xlgmii";
 	case PHY_INTERFACE_MODE_MOCA:
 		return "moca";
 	case PHY_INTERFACE_MODE_QSGMII:
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH net-next 2/2] net: phylink: Add XLGMII support
  2020-03-12 17:10 [PATCH net-next 0/2] net: phy: XLGMII define and usage in PHYLINK Jose Abreu
  2020-03-12 17:10 ` [PATCH net-next 1/2] net: phy: Add XLGMII interface define Jose Abreu
@ 2020-03-12 17:10 ` Jose Abreu
  2020-03-15  3:55 ` [PATCH net-next 0/2] net: phy: XLGMII define and usage in PHYLINK David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: Jose Abreu @ 2020-03-12 17:10 UTC (permalink / raw)
  To: netdev
  Cc: Joao Pinto, Jose Abreu, Russell King, Andrew Lunn,
	Florian Fainelli, Heiner Kallweit, David S. Miller, linux-kernel

Add XLGMII interface and the list of XLGMII speeds to PHYLINK.

Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>

---
Cc: Russell King <linux@armlinux.org.uk>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
 drivers/net/phy/phylink.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index 19db68d74cb4..2f592aa1a225 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -326,6 +326,33 @@ static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode)
 			phylink_set(pl->supported, 10000baseER_Full);
 			break;
 
+		case PHY_INTERFACE_MODE_XLGMII:
+			phylink_set(pl->supported, 25000baseCR_Full);
+			phylink_set(pl->supported, 25000baseKR_Full);
+			phylink_set(pl->supported, 25000baseSR_Full);
+			phylink_set(pl->supported, 40000baseKR4_Full);
+			phylink_set(pl->supported, 40000baseCR4_Full);
+			phylink_set(pl->supported, 40000baseSR4_Full);
+			phylink_set(pl->supported, 40000baseLR4_Full);
+			phylink_set(pl->supported, 50000baseCR2_Full);
+			phylink_set(pl->supported, 50000baseKR2_Full);
+			phylink_set(pl->supported, 50000baseSR2_Full);
+			phylink_set(pl->supported, 50000baseKR_Full);
+			phylink_set(pl->supported, 50000baseSR_Full);
+			phylink_set(pl->supported, 50000baseCR_Full);
+			phylink_set(pl->supported, 50000baseLR_ER_FR_Full);
+			phylink_set(pl->supported, 50000baseDR_Full);
+			phylink_set(pl->supported, 100000baseKR4_Full);
+			phylink_set(pl->supported, 100000baseSR4_Full);
+			phylink_set(pl->supported, 100000baseCR4_Full);
+			phylink_set(pl->supported, 100000baseLR4_ER4_Full);
+			phylink_set(pl->supported, 100000baseKR2_Full);
+			phylink_set(pl->supported, 100000baseSR2_Full);
+			phylink_set(pl->supported, 100000baseCR2_Full);
+			phylink_set(pl->supported, 100000baseLR2_ER2_FR2_Full);
+			phylink_set(pl->supported, 100000baseDR2_Full);
+			break;
+
 		default:
 			phylink_err(pl,
 				    "incorrect link mode %s for in-band status\n",
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next 0/2] net: phy: XLGMII define and usage in PHYLINK
  2020-03-12 17:10 [PATCH net-next 0/2] net: phy: XLGMII define and usage in PHYLINK Jose Abreu
  2020-03-12 17:10 ` [PATCH net-next 1/2] net: phy: Add XLGMII interface define Jose Abreu
  2020-03-12 17:10 ` [PATCH net-next 2/2] net: phylink: Add XLGMII support Jose Abreu
@ 2020-03-15  3:55 ` David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2020-03-15  3:55 UTC (permalink / raw)
  To: Jose.Abreu
  Cc: netdev, Joao.Pinto, andrew, f.fainelli, hkallweit1, linux, linux-kernel

From: Jose Abreu <Jose.Abreu@synopsys.com>
Date: Thu, 12 Mar 2020 18:10:08 +0100

> Adds XLGMII defines and usage in PHYLINK.
> 
> Patch 1/2, adds the define for it, whilst 2/2 adds the usage of it in
> PHYLINK.

Series applied, thanks Jose.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-15  3:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-12 17:10 [PATCH net-next 0/2] net: phy: XLGMII define and usage in PHYLINK Jose Abreu
2020-03-12 17:10 ` [PATCH net-next 1/2] net: phy: Add XLGMII interface define Jose Abreu
2020-03-12 17:10 ` [PATCH net-next 2/2] net: phylink: Add XLGMII support Jose Abreu
2020-03-15  3:55 ` [PATCH net-next 0/2] net: phy: XLGMII define and usage in PHYLINK David Miller

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.