diff options
author | Robert Hancock <hancock@sedsystems.ca> | 2019-06-07 01:28:24 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-07 02:24:30 +0300 |
commit | f5203a3d9b25fa28a40bfc27c05a4020c6430f06 (patch) | |
tree | 1aa7e943c5d445b4eb21299ea3e3871a8027b59c /drivers/net/ethernet/xilinx/xilinx_axienet.h | |
parent | 28ef9ebdb64c6f45079d8be45ab47bd0c62d078c (diff) | |
download | linux-f5203a3d9b25fa28a40bfc27c05a4020c6430f06.tar.xz |
net: axienet: convert to phylink API
Convert this driver to use the phylink API rather than the legacy PHY
API. This allows for better support for SFP modules connected using a
1000BaseX or SGMII interface.
Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xilinx/xilinx_axienet.h')
-rw-r--r-- | drivers/net/ethernet/xilinx/xilinx_axienet.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet.h b/drivers/net/ethernet/xilinx/xilinx_axienet.h index 8e605a84b24d..2dacfc85b3ba 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet.h +++ b/drivers/net/ethernet/xilinx/xilinx_axienet.h @@ -13,6 +13,7 @@ #include <linux/spinlock.h> #include <linux/interrupt.h> #include <linux/if_vlan.h> +#include <linux/phylink.h> /* Packet size info */ #define XAE_HDR_SIZE 14 /* Size of Ethernet header */ @@ -420,6 +421,9 @@ struct axienet_local { /* Connection to PHY device */ struct device_node *phy_node; + struct phylink *phylink; + struct phylink_config phylink_config; + /* Clock for AXI bus */ struct clk *clk; @@ -439,7 +443,6 @@ struct axienet_local { phy_interface_t phy_mode; u32 options; /* Current options word */ - u32 last_link; u32 features; /* Buffer descriptors */ |