summaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/siena.c
diff options
context:
space:
mode:
authorSteve Hodgson <shodgson@solarflare.com>2010-02-03 10:30:38 +0100
committerDavid S. Miller <davem@davemloft.net>2010-02-04 04:12:44 +0100
commit7a6b8f6f7f74085a1330b0f9765d81bcea8c58b7 (patch)
tree6358e7e8d94d3475c864c114188df2c6eb4a98ff /drivers/net/sfc/siena.c
parentsfc: Handle firmware assertion failure while resetting (diff)
downloadlinux-7a6b8f6f7f74085a1330b0f9765d81bcea8c58b7.tar.xz
linux-7a6b8f6f7f74085a1330b0f9765d81bcea8c58b7.zip
sfc: Enable autonegotiated flow-control by default if supported
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/sfc/siena.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/sfc/siena.c b/drivers/net/sfc/siena.c
index 0e4c13abf087..f6a53895ff27 100644
--- a/drivers/net/sfc/siena.c
+++ b/drivers/net/sfc/siena.c
@@ -106,16 +106,11 @@ static int siena_probe_port(struct efx_nic *efx)
efx->mdio.mdio_read = siena_mdio_read;
efx->mdio.mdio_write = siena_mdio_write;
- /* Fill out MDIO structure and loopback modes */
+ /* Fill out MDIO structure, loopback modes, and initial link state */
rc = efx->phy_op->probe(efx);
if (rc != 0)
return rc;
- /* Initial assumption */
- efx->link_state.speed = 10000;
- efx->link_state.fd = true;
- efx->wanted_fc = EFX_FC_RX | EFX_FC_TX;
-
/* Allocate buffer for stats */
rc = efx_nic_alloc_buffer(efx, &efx->stats_buffer,
MC_CMD_MAC_NSTATS * sizeof(u64));