net: axienet: Properly handle PCS/PMA PHY for 1000BaseX mode
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.
Signed-off-by Robert Hancock <[email protected]>
--- 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
@@ -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