diff options
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_common.c')
-rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_common.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_common.c b/drivers/net/ethernet/intel/i40e/i40e_common.c index cf929cc47245..ee6052ecd215 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_common.c +++ b/drivers/net/ethernet/intel/i40e/i40e_common.c | |||
@@ -1486,6 +1486,7 @@ u32 i40e_led_get(struct i40e_hw *hw) | |||
1486 | case I40E_COMBINED_ACTIVITY: | 1486 | case I40E_COMBINED_ACTIVITY: |
1487 | case I40E_FILTER_ACTIVITY: | 1487 | case I40E_FILTER_ACTIVITY: |
1488 | case I40E_MAC_ACTIVITY: | 1488 | case I40E_MAC_ACTIVITY: |
1489 | case I40E_LINK_ACTIVITY: | ||
1489 | continue; | 1490 | continue; |
1490 | default: | 1491 | default: |
1491 | break; | 1492 | break; |
@@ -1534,6 +1535,7 @@ void i40e_led_set(struct i40e_hw *hw, u32 mode, bool blink) | |||
1534 | case I40E_COMBINED_ACTIVITY: | 1535 | case I40E_COMBINED_ACTIVITY: |
1535 | case I40E_FILTER_ACTIVITY: | 1536 | case I40E_FILTER_ACTIVITY: |
1536 | case I40E_MAC_ACTIVITY: | 1537 | case I40E_MAC_ACTIVITY: |
1538 | case I40E_LINK_ACTIVITY: | ||
1537 | continue; | 1539 | continue; |
1538 | default: | 1540 | default: |
1539 | break; | 1541 | break; |
@@ -1544,9 +1546,6 @@ void i40e_led_set(struct i40e_hw *hw, u32 mode, bool blink) | |||
1544 | gpio_val |= ((mode << I40E_GLGEN_GPIO_CTL_LED_MODE_SHIFT) & | 1546 | gpio_val |= ((mode << I40E_GLGEN_GPIO_CTL_LED_MODE_SHIFT) & |
1545 | I40E_GLGEN_GPIO_CTL_LED_MODE_MASK); | 1547 | I40E_GLGEN_GPIO_CTL_LED_MODE_MASK); |
1546 | 1548 | ||
1547 | if (mode == I40E_LINK_ACTIVITY) | ||
1548 | blink = false; | ||
1549 | |||
1550 | if (blink) | 1549 | if (blink) |
1551 | gpio_val |= BIT(I40E_GLGEN_GPIO_CTL_LED_BLINK_SHIFT); | 1550 | gpio_val |= BIT(I40E_GLGEN_GPIO_CTL_LED_BLINK_SHIFT); |
1552 | else | 1551 | else |