aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/xfp_phy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sfc/xfp_phy.c')
-rw-r--r--drivers/net/sfc/xfp_phy.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/sfc/xfp_phy.c b/drivers/net/sfc/xfp_phy.c
index 0413d135e4aa..d4e203ddcf1c 100644
--- a/drivers/net/sfc/xfp_phy.c
+++ b/drivers/net/sfc/xfp_phy.c
@@ -17,7 +17,7 @@
17#include "mdio_10g.h" 17#include "mdio_10g.h"
18#include "xenpack.h" 18#include "xenpack.h"
19#include "phy.h" 19#include "phy.h"
20#include "mac.h" 20#include "falcon.h"
21 21
22#define XFP_REQUIRED_DEVS (MDIO_MMDREG_DEVS_PCS | \ 22#define XFP_REQUIRED_DEVS (MDIO_MMDREG_DEVS_PCS | \
23 MDIO_MMDREG_DEVS_PMAPMD | \ 23 MDIO_MMDREG_DEVS_PMAPMD | \
@@ -125,7 +125,7 @@ static int xfp_phy_check_hw(struct efx_nic *efx)
125 int link_up = xfp_link_ok(efx); 125 int link_up = xfp_link_ok(efx);
126 /* Simulate a PHY event if link state has changed */ 126 /* Simulate a PHY event if link state has changed */
127 if (link_up != efx->link_up) 127 if (link_up != efx->link_up)
128 falcon_xmac_sim_phy_event(efx); 128 falcon_sim_phy_event(efx);
129 129
130 rc = efx->board_info.monitor(efx); 130 rc = efx->board_info.monitor(efx);
131 if (rc) { 131 if (rc) {
@@ -169,11 +169,14 @@ static void xfp_phy_fini(struct efx_nic *efx)
169} 169}
170 170
171struct efx_phy_operations falcon_xfp_phy_ops = { 171struct efx_phy_operations falcon_xfp_phy_ops = {
172 .macs = EFX_XMAC,
172 .init = xfp_phy_init, 173 .init = xfp_phy_init,
173 .reconfigure = xfp_phy_reconfigure, 174 .reconfigure = xfp_phy_reconfigure,
174 .check_hw = xfp_phy_check_hw, 175 .check_hw = xfp_phy_check_hw,
175 .fini = xfp_phy_fini, 176 .fini = xfp_phy_fini,
176 .clear_interrupt = xfp_phy_clear_interrupt, 177 .clear_interrupt = xfp_phy_clear_interrupt,
178 .get_settings = mdio_clause45_get_settings,
179 .set_settings = mdio_clause45_set_settings,
177 .mmds = XFP_REQUIRED_DEVS, 180 .mmds = XFP_REQUIRED_DEVS,
178 .loopbacks = XFP_LOOPBACKS, 181 .loopbacks = XFP_LOOPBACKS,
179}; 182};