aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x
diff options
context:
space:
mode:
authorYaniv Rosner <yanivr@broadcom.com>2011-08-02 19:00:12 -0400
committerDavid S. Miller <davem@davemloft.net>2011-08-03 06:22:18 -0400
commit28f4881cbf9ce285edfc245a8990af36d21c062f (patch)
treeb64979de5a6a58348d8b625d1b8d4d121dc2340a /drivers/net/bnx2x
parentafad009ad76ece72a3c9629bbc08f14459b9bba7 (diff)
bnx2x: Clear MDIO access warning during first driver load
Signed-off-by: Yaniv Rosner <yanivr@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x')
-rw-r--r--drivers/net/bnx2x/bnx2x_link.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/bnx2x/bnx2x_link.c b/drivers/net/bnx2x/bnx2x_link.c
index 01fb92c37a9f..d45b1555a602 100644
--- a/drivers/net/bnx2x/bnx2x_link.c
+++ b/drivers/net/bnx2x/bnx2x_link.c
@@ -11724,12 +11724,16 @@ int bnx2x_link_reset(struct link_params *params, struct link_vars *vars,
11724 bnx2x_set_led(params, vars, LED_MODE_OFF, 0); 11724 bnx2x_set_led(params, vars, LED_MODE_OFF, 0);
11725 11725
11726 if (reset_ext_phy) { 11726 if (reset_ext_phy) {
11727 bnx2x_set_mdio_clk(bp, params->chip_id, port);
11727 for (phy_index = EXT_PHY1; phy_index < params->num_phys; 11728 for (phy_index = EXT_PHY1; phy_index < params->num_phys;
11728 phy_index++) { 11729 phy_index++) {
11729 if (params->phy[phy_index].link_reset) 11730 if (params->phy[phy_index].link_reset) {
11731 bnx2x_set_aer_mmd(params,
11732 &params->phy[phy_index]);
11730 params->phy[phy_index].link_reset( 11733 params->phy[phy_index].link_reset(
11731 &params->phy[phy_index], 11734 &params->phy[phy_index],
11732 params); 11735 params);
11736 }
11733 if (params->phy[phy_index].flags & 11737 if (params->phy[phy_index].flags &
11734 FLAGS_REARM_LATCH_SIGNAL) 11738 FLAGS_REARM_LATCH_SIGNAL)
11735 clear_latch_ind = 1; 11739 clear_latch_ind = 1;