From: Yaniv Rosner Date: Wed, 7 Sep 2011 00:48:06 +0000 (+0000) Subject: bnx2x: Fix 578xx link LED X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~458 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4589cb01ebb36148d7d603a9054e6895222772e7;p=users%2Fjedix%2Flinux-maple.git bnx2x: Fix 578xx link LED Fix 1G link LED for the BCM578xx-SFI/KR. Signed-off-by: Yaniv Rosner Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller (cherry picked from commit ab505dec96340946079d1288f49041bea9f259ff) Signed-off-by: Joe Jin --- diff --git a/drivers/net/bnx2x/bnx2x_link.c b/drivers/net/bnx2x/bnx2x_link.c index 52101cb4d8dbd..57fe056bc5e00 100644 --- a/drivers/net/bnx2x/bnx2x_link.c +++ b/drivers/net/bnx2x/bnx2x_link.c @@ -6201,7 +6201,7 @@ int bnx2x_set_led(struct link_params *params, (tmp | EMAC_LED_OVERRIDE)); /* * return here without enabling traffic - * LED blink andsetting rate in ON mode. + * LED blink and setting rate in ON mode. * In oper mode, enabling LED blink * and setting rate is needed. */ @@ -6213,7 +6213,11 @@ int bnx2x_set_led(struct link_params *params, * This is a work-around for HW issue found when link * is up in CL73 */ - REG_WR(bp, NIG_REG_LED_10G_P0 + port*4, 1); + if ((!CHIP_IS_E3(bp)) || + (CHIP_IS_E3(bp) && + mode == LED_MODE_ON)) + REG_WR(bp, NIG_REG_LED_10G_P0 + port*4, 1); + if (CHIP_IS_E1x(bp) || CHIP_IS_E2(bp) || (mode == LED_MODE_ON))