netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] phy: Add 2.5G SGMII interface mode
@ 2017-11-30  4:30 Bhaskar Upadhaya
  2017-11-30 15:50 ` Andrew Lunn
  0 siblings, 1 reply; 12+ messages in thread
From: Bhaskar Upadhaya @ 2017-11-30  4:30 UTC (permalink / raw)
  To: netdev, davem; +Cc: linux-arm-kernel, Bhaskar Upadhaya

Add 2.5G SGMII interface mode(PHY_INTERFACE_MODE_2500SGMII)
in existing phy_interface list.As auto-negotiation is not
supported for 2.5G SGMII, we need to add a new type
PHY_INTERFACE_MODE_2500SGMII to differentiate
SGMII-1G and SGMII-2.5G with different setting for
auto-negotiation.

Signed-off-by: Bhaskar Upadhaya <Bhaskar.Upadhaya@nxp.com>
---
 include/linux/phy.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/phy.h b/include/linux/phy.h
index dc82a07..158a5a5 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -87,6 +87,7 @@
 	PHY_INTERFACE_MODE_XAUI,
 	/* 10GBASE-KR, XFI, SFI - single lane 10G Serdes */
 	PHY_INTERFACE_MODE_10GKR,
+	PHY_INTERFACE_MODE_2500SGMII,
 	PHY_INTERFACE_MODE_MAX,
 } phy_interface_t;
 
@@ -159,6 +160,8 @@ static inline const char *phy_modes(phy_interface_t interface)
 		return "xaui";
 	case PHY_INTERFACE_MODE_10GKR:
 		return "10gbase-kr";
+	case PHY_INTERFACE_MODE_2500SGMII:
+		return "sgmii-2500";
 	default:
 		return "unknown";
 	}
-- 
1.9.1

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

end of thread, other threads:[~2017-12-01 19:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-30  4:30 [PATCH 1/1] phy: Add 2.5G SGMII interface mode Bhaskar Upadhaya
2017-11-30 15:50 ` Andrew Lunn
2017-11-30 17:16   ` Bhaskar Upadhaya
2017-11-30 17:34     ` David Miller
2017-11-30 17:41     ` Andrew Lunn
2017-11-30 18:15       ` Russell King - ARM Linux
2017-11-30 18:26         ` Andrew Lunn
2017-11-30 18:53           ` Russell King - ARM Linux
2017-12-01 18:40             ` Bhaskar Upadhaya
2017-12-01 18:44               ` Florian Fainelli
2017-12-01 19:12               ` Andrew Lunn
2017-11-30 17:33   ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).