Skip to contentSkip to conversation

net: axienet: Properly handle PCS/PMA PHY for 1000BaseX mode

PATCH Superseded Robert Hancock 1 participant 1 message Oct 20, 2020

Subsystems (4)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 net: axienet: Properly handle PCS/PMA PHY for 1000BaseX mode

Update the axienet driver to properly support the Xilinx PCS/PMA PHY component which is used for 1000BaseX and SGMII modes, including properly configuring the auto-negotiation mode of the PHY and reading the negotiated state from the PHY.

---
 drivers/net/ethernet/xilinx/xilinx_axienet.h  |  3 +
 .../net/ethernet/xilinx/xilinx_axienet_main.c | 96 ++++++++++++++-----
 2 files changed, 73 insertions(+), 26 deletions(-)
drivers/net/ethernet/xilinx/xilinx_axienet.h +3 -0
index f34c7903ff52..7326ad4d5e1c 100644
@@ -419,6 +419,9 @@ struct axienet_local {
 	struct phylink *phylink;
 	struct phylink_config phylink_config;
 
+	/* Reference to PCS/PMA PHY if used */
+	struct mdio_device *pcs_phy;
+
 	/* Clock for AXI bus */
 	struct clk *clk;
 
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +70 -26

130 lines not on this page · raw message

Signature · 1 line
2.18.4