diff options
author | David S. Miller <davem@davemloft.net> | 2011-01-31 16:13:24 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-31 16:13:24 -0500 |
commit | 5403c8a29521a6eb02f9283dbbe0184527f8f42b (patch) | |
tree | 4f1ca17feda4dfa88f53eceeaa39583ec840d27e /drivers/net/bnx2x/bnx2x_main.c | |
parent | c79b9e4936142d5ed26073d58bdd4a5a0ac62f32 (diff) | |
parent | c4c93106741bbf61ecd05a2a835af8e3bf31c1bd (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_main.c')
-rw-r--r-- | drivers/net/bnx2x/bnx2x_main.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c index a2a1bc43a1d2..2215a39f74fb 100644 --- a/drivers/net/bnx2x/bnx2x_main.c +++ b/drivers/net/bnx2x/bnx2x_main.c | |||
@@ -5296,10 +5296,6 @@ static int bnx2x_init_hw_common(struct bnx2x *bp, u32 load_code) | |||
5296 | } | 5296 | } |
5297 | } | 5297 | } |
5298 | 5298 | ||
5299 | bp->port.need_hw_lock = bnx2x_hw_lock_required(bp, | ||
5300 | bp->common.shmem_base, | ||
5301 | bp->common.shmem2_base); | ||
5302 | |||
5303 | bnx2x_setup_fan_failure_detection(bp); | 5299 | bnx2x_setup_fan_failure_detection(bp); |
5304 | 5300 | ||
5305 | /* clear PXP2 attentions */ | 5301 | /* clear PXP2 attentions */ |
@@ -5503,9 +5499,6 @@ static int bnx2x_init_hw_port(struct bnx2x *bp) | |||
5503 | 5499 | ||
5504 | bnx2x_init_block(bp, MCP_BLOCK, init_stage); | 5500 | bnx2x_init_block(bp, MCP_BLOCK, init_stage); |
5505 | bnx2x_init_block(bp, DMAE_BLOCK, init_stage); | 5501 | bnx2x_init_block(bp, DMAE_BLOCK, init_stage); |
5506 | bp->port.need_hw_lock = bnx2x_hw_lock_required(bp, | ||
5507 | bp->common.shmem_base, | ||
5508 | bp->common.shmem2_base); | ||
5509 | if (bnx2x_fan_failure_det_req(bp, bp->common.shmem_base, | 5502 | if (bnx2x_fan_failure_det_req(bp, bp->common.shmem_base, |
5510 | bp->common.shmem2_base, port)) { | 5503 | bp->common.shmem2_base, port)) { |
5511 | u32 reg_addr = (port ? MISC_REG_AEU_ENABLE1_FUNC_1_OUT_0 : | 5504 | u32 reg_addr = (port ? MISC_REG_AEU_ENABLE1_FUNC_1_OUT_0 : |
@@ -8379,6 +8372,17 @@ static void __devinit bnx2x_get_port_hwinfo(struct bnx2x *bp) | |||
8379 | (ext_phy_type != PORT_HW_CFG_XGXS_EXT_PHY_TYPE_NOT_CONN)) | 8372 | (ext_phy_type != PORT_HW_CFG_XGXS_EXT_PHY_TYPE_NOT_CONN)) |
8380 | bp->mdio.prtad = | 8373 | bp->mdio.prtad = |
8381 | XGXS_EXT_PHY_ADDR(ext_phy_config); | 8374 | XGXS_EXT_PHY_ADDR(ext_phy_config); |
8375 | |||
8376 | /* | ||
8377 | * Check if hw lock is required to access MDC/MDIO bus to the PHY(s) | ||
8378 | * In MF mode, it is set to cover self test cases | ||
8379 | */ | ||
8380 | if (IS_MF(bp)) | ||
8381 | bp->port.need_hw_lock = 1; | ||
8382 | else | ||
8383 | bp->port.need_hw_lock = bnx2x_hw_lock_required(bp, | ||
8384 | bp->common.shmem_base, | ||
8385 | bp->common.shmem2_base); | ||
8382 | } | 8386 | } |
8383 | 8387 | ||
8384 | static void __devinit bnx2x_get_mac_hwinfo(struct bnx2x *bp) | 8388 | static void __devinit bnx2x_get_mac_hwinfo(struct bnx2x *bp) |