Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab505dec authored by Yaniv Rosner's avatar Yaniv Rosner Committed by David S. Miller
Browse files

bnx2x: Fix 578xx link LED



Fix 1G link LED for the BCM578xx-SFI/KR.

Signed-off-by: default avatarYaniv Rosner <yanivr@broadcom.com>
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4d7e25d6
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -5936,7 +5936,11 @@ int bnx2x_set_led(struct link_params *params,
			 * This is a work-around for HW issue found when link
			 * This is a work-around for HW issue found when link
			 * is up in CL73
			 * is up in CL73
			 */
			 */
			if ((!CHIP_IS_E3(bp)) ||
			    (CHIP_IS_E3(bp) &&
			     mode == LED_MODE_ON))
				REG_WR(bp, NIG_REG_LED_10G_P0 + port*4, 1);
				REG_WR(bp, NIG_REG_LED_10G_P0 + port*4, 1);

			if (CHIP_IS_E1x(bp) ||
			if (CHIP_IS_E1x(bp) ||
			    CHIP_IS_E2(bp) ||
			    CHIP_IS_E2(bp) ||
			    (mode == LED_MODE_ON))
			    (mode == LED_MODE_ON))