Skip to content

Commit 28f4881

Browse files
Yaniv Rosnerdavem330
authored andcommitted
bnx2x: Clear MDIO access warning during first driver load
Signed-off-by: Yaniv Rosner <[email protected]> Signed-off-by: Eilon Greenstein <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent afad009 commit 28f4881

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/net/bnx2x/bnx2x_link.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11724,12 +11724,16 @@ int bnx2x_link_reset(struct link_params *params, struct link_vars *vars,
1172411724
bnx2x_set_led(params, vars, LED_MODE_OFF, 0);
1172511725

1172611726
if (reset_ext_phy) {
11727+
bnx2x_set_mdio_clk(bp, params->chip_id, port);
1172711728
for (phy_index = EXT_PHY1; phy_index < params->num_phys;
1172811729
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]);
1173011733
params->phy[phy_index].link_reset(
1173111734
&params->phy[phy_index],
1173211735
params);
11736+
}
1173311737
if (params->phy[phy_index].flags &
1173411738
FLAGS_REARM_LATCH_SIGNAL)
1173511739
clear_latch_ind = 1;

0 commit comments

Comments
 (0)