aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/qt202x_phy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sfc/qt202x_phy.c')
-rw-r--r--drivers/net/sfc/qt202x_phy.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/net/sfc/qt202x_phy.c b/drivers/net/sfc/qt202x_phy.c
index 49a5ab5efb9a..22b0e89ba8f2 100644
--- a/drivers/net/sfc/qt202x_phy.c
+++ b/drivers/net/sfc/qt202x_phy.c
@@ -135,6 +135,14 @@ static int qt202x_reset_phy(struct efx_nic *efx)
135 return rc; 135 return rc;
136} 136}
137 137
138static int qt202x_phy_probe(struct efx_nic *efx)
139{
140 efx->mdio.mmds = QT202X_REQUIRED_DEVS;
141 efx->mdio.mode_support = MDIO_SUPPORTS_C45 | MDIO_EMULATE_C22;
142 efx->loopback_modes = QT202X_LOOPBACKS | FALCON_XMAC_LOOPBACKS;
143 return 0;
144}
145
138static int qt202x_phy_init(struct efx_nic *efx) 146static int qt202x_phy_init(struct efx_nic *efx)
139{ 147{
140 struct qt202x_phy_data *phy_data; 148 struct qt202x_phy_data *phy_data;
@@ -224,13 +232,11 @@ static void qt202x_phy_fini(struct efx_nic *efx)
224} 232}
225 233
226struct efx_phy_operations falcon_qt202x_phy_ops = { 234struct efx_phy_operations falcon_qt202x_phy_ops = {
227 .macs = EFX_XMAC, 235 .probe = qt202x_phy_probe,
228 .init = qt202x_phy_init, 236 .init = qt202x_phy_init,
229 .reconfigure = qt202x_phy_reconfigure, 237 .reconfigure = qt202x_phy_reconfigure,
230 .poll = qt202x_phy_poll, 238 .poll = qt202x_phy_poll,
231 .fini = qt202x_phy_fini, 239 .fini = qt202x_phy_fini,
232 .get_settings = qt202x_phy_get_settings, 240 .get_settings = qt202x_phy_get_settings,
233 .set_settings = efx_mdio_set_settings, 241 .set_settings = efx_mdio_set_settings,
234 .mmds = QT202X_REQUIRED_DEVS,
235 .loopbacks = QT202X_LOOPBACKS,
236}; 242};