]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bnx2x: Fix warning message during 57712/8727 initialization
authorYaniv Rosner <yanivr@broadcom.com>
Tue, 5 Jul 2011 01:07:16 +0000 (01:07 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 07:24:18 +0000 (15:24 +0800)
Clear warning message "MDC/MDIO access timeout" during first driver load by setting MDIO clock.
This warning has no significant meaning, since it occurs prior to the first PHY initialization.

(cherry picked from commit 7d09926d1decb658d4e24f70216b6b0b74168026)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x_link.c

index 03a2085bd5172a5e8b59a3cf295f28c68c69f63e..bcd8f00386287d46c3ebacb2fce644f355ba8f88 100644 (file)
@@ -11684,16 +11684,12 @@ int bnx2x_link_reset(struct link_params *params, struct link_vars *vars,
        bnx2x_set_led(params, vars, LED_MODE_OFF, 0);
 
        if (reset_ext_phy) {
-               bnx2x_set_mdio_clk(bp, params->chip_id, port);
                for (phy_index = EXT_PHY1; phy_index < params->num_phys;
                      phy_index++) {
-                       if (params->phy[phy_index].link_reset) {
-                               bnx2x_set_aer_mmd(params,
-                                                 &params->phy[phy_index]);
+                       if (params->phy[phy_index].link_reset)
                                params->phy[phy_index].link_reset(
                                        &params->phy[phy_index],
                                        params);
-                       }
                        if (params->phy[phy_index].flags &
                            FLAGS_REARM_LATCH_SIGNAL)
                                clear_latch_ind = 1;