diff options
author | Nithin Sujir <nsujir@broadcom.com> | 2013-09-20 16:46:57 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-21 14:04:52 -0400 |
commit | 89f67978b54c7e9ef3562ae3cb44cf43fb781d5c (patch) | |
tree | 28760d0247ae38624cdf2930a1fb10f9f8d45475 | |
parent | 68273712a19e9107a498a371532b3b3eb6dbb14c (diff) | |
download | blackbird-op-linux-89f67978b54c7e9ef3562ae3cb44cf43fb781d5c.tar.gz blackbird-op-linux-89f67978b54c7e9ef3562ae3cb44cf43fb781d5c.zip |
tg3: LED in shared mode does not blink during traffic
On the 5717, 5719, 5720 and 5762 devices, in shared link/activity mode,
the blink rate must be overridden with all bits set.
Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/broadcom/tg3.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c index c98f6b04b559..40f8f99116b7 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c @@ -14928,6 +14928,12 @@ static void tg3_get_eeprom_hw_cfg(struct tg3 *tp) tg3_chip_rev_id(tp) != CHIPREV_ID_5750_A1) tp->led_ctrl |= (LED_CTRL_MODE_PHY_1 | LED_CTRL_MODE_PHY_2); + + if (tg3_flag(tp, 5717_PLUS) || + tg3_asic_rev(tp) == ASIC_REV_5762) + tp->led_ctrl |= LED_CTRL_BLINK_RATE_OVERRIDE | + LED_CTRL_BLINK_RATE_MASK; + break; case SHASTA_EXT_LED_MAC: |