aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/falcon.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-11-29 10:08:55 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-29 20:23:53 -0500
commitc1c4f453b61463df4df16f7aa5782fc0cfe05b9e (patch)
treea72b533294500e7f19ab1f67142b732471df53cb /drivers/net/sfc/falcon.c
parente58f69f4082f60076885798fae8f3a17ea713bf6 (diff)
sfc: Remove static PHY data and enumerations
New NICs have firmware managing the PHY, and we will discover the PHY capabilities at run-time. Replace the static data with probe() and test_name() operations. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/falcon.c')
-rw-r--r--drivers/net/sfc/falcon.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/drivers/net/sfc/falcon.c b/drivers/net/sfc/falcon.c
index 63e6734d8341..29d45376e4c9 100644
--- a/drivers/net/sfc/falcon.c
+++ b/drivers/net/sfc/falcon.c
@@ -2291,19 +2291,12 @@ static int falcon_probe_port(struct efx_nic *efx)
2291 return -ENODEV; 2291 return -ENODEV;
2292 } 2292 }
2293 2293
2294 if (efx->phy_op->macs & EFX_XMAC) 2294 /* Fill out MDIO structure and loopback modes */
2295 efx->loopback_modes |= ((1 << LOOPBACK_XGMII) |
2296 (1 << LOOPBACK_XGXS) |
2297 (1 << LOOPBACK_XAUI));
2298 if (efx->phy_op->macs & EFX_GMAC)
2299 efx->loopback_modes |= (1 << LOOPBACK_GMAC);
2300 efx->loopback_modes |= efx->phy_op->loopbacks;
2301
2302 /* Set up MDIO structure for PHY */
2303 efx->mdio.mmds = efx->phy_op->mmds;
2304 efx->mdio.mode_support = MDIO_SUPPORTS_C45 | MDIO_EMULATE_C22;
2305 efx->mdio.mdio_read = falcon_mdio_read; 2295 efx->mdio.mdio_read = falcon_mdio_read;
2306 efx->mdio.mdio_write = falcon_mdio_write; 2296 efx->mdio.mdio_write = falcon_mdio_write;
2297 rc = efx->phy_op->probe(efx);
2298 if (rc != 0)
2299 return rc;
2307 2300
2308 /* Initial assumption */ 2301 /* Initial assumption */
2309 efx->link_state.speed = 10000; 2302 efx->link_state.speed = 10000;