Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171956
b: refs/heads/master
c: 1dfc5ce
h: refs/heads/master
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Nov 26, 2009
1 parent 8858e55 commit 42b4975
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 26deba501371c215f95624ede81ab5b611fd7d95
refs/heads/master: 1dfc5ceacd00365a9089e98643f4b26253d5a6aa
14 changes: 9 additions & 5 deletions trunk/drivers/net/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,23 +737,27 @@ static int efx_init_port(struct efx_nic *efx)

EFX_LOG(efx, "init port\n");

mutex_lock(&efx->mac_lock);

rc = efx->phy_op->init(efx);
if (rc)
return rc;
mutex_lock(&efx->mac_lock);
goto fail1;
efx->phy_op->reconfigure(efx);
rc = falcon_switch_mac(efx);
mutex_unlock(&efx->mac_lock);
if (rc)
goto fail;
goto fail2;
efx->mac_op->reconfigure(efx);

efx->port_initialized = true;
efx_stats_enable(efx);

mutex_unlock(&efx->mac_lock);
return 0;

fail:
fail2:
efx->phy_op->fini(efx);
fail1:
mutex_unlock(&efx->mac_lock);
return rc;
}

Expand Down

0 comments on commit 42b4975

Please sign in to comment.