Commit 28f4881cbf9ce285edfc245a8990af36d21c062f

Authored by Yaniv Rosner
Committed by David S. Miller
1 parent afad009ad7

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>

Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff

drivers/net/bnx2x/bnx2x_link.c
... ... @@ -11724,12 +11724,16 @@
11724 11724 bnx2x_set_led(params, vars, LED_MODE_OFF, 0);
11725 11725  
11726 11726 if (reset_ext_phy) {
  11727 + bnx2x_set_mdio_clk(bp, params->chip_id, port);
11727 11728 for (phy_index = EXT_PHY1; phy_index < params->num_phys;
11728 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 11733 params->phy[phy_index].link_reset(
11731 11734 &params->phy[phy_index],
11732 11735 params);
  11736 + }
11733 11737 if (params->phy[phy_index].flags &
11734 11738 FLAGS_REARM_LATCH_SIGNAL)
11735 11739 clear_latch_ind = 1;