Skip to content

Commit

Permalink
bnx2x: Set LED in loopback test
Browse files Browse the repository at this point in the history
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eilon Greenstein authored and David S. Miller committed Jul 21, 2009
1 parent 4d295db commit ba71d31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/bnx2x_link.c
Original file line number Diff line number Diff line change
Expand Up @@ -5494,6 +5494,11 @@ u8 bnx2x_phy_init(struct link_params *params, struct link_vars *vars)
}
REG_WR(bp, NIG_REG_EGRESS_DRAIN0_MODE +
params->port*4, 0);

bnx2x_set_led(bp, params->port, LED_MODE_OPER,
vars->line_speed, params->hw_led_mode,
params->chip_id);

} else
/* No loopback */
{
Expand Down

0 comments on commit ba71d31

Please sign in to comment.