Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135053
b: refs/heads/master
c: 115122a
h: refs/heads/master
i:
  135051: 238f2d9
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Mar 5, 2009
1 parent 573764e commit 3141b78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: a7ef59332b33cb1924ea76cce2aa620a32bb0d7a
refs/heads/master: 115122afc5e34499a0edfd2b057e9c352fa7c78f
9 changes: 6 additions & 3 deletions trunk/drivers/net/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@ static void efx_link_status_changed(struct efx_nic *efx)

}

static void efx_fini_port(struct efx_nic *efx);

/* This call reinitialises the MAC to pick up new PHY settings. The
* caller must hold the mac_lock */
void __efx_reconfigure_port(struct efx_nic *efx)
Expand Down Expand Up @@ -592,8 +594,8 @@ void __efx_reconfigure_port(struct efx_nic *efx)

fail:
EFX_ERR(efx, "failed to reconfigure MAC\n");
efx->phy_op->fini(efx);
efx->port_initialized = false;
efx->port_enabled = false;
efx_fini_port(efx);
}

/* Reinitialise the MAC to pick up new PHY settings, even if the port is
Expand Down Expand Up @@ -1667,7 +1669,8 @@ int efx_reset_up(struct efx_nic *efx, enum reset_type method,
rc = efx->phy_op->init(efx);
if (rc)
ok = false;
} else
}
if (!ok)
efx->port_initialized = false;
}

Expand Down

0 comments on commit 3141b78

Please sign in to comment.