/* ixgbe_blink_led_stop_generic - Stop blinking LED based on index. @hw: pointer to hardware structure @index: led number to stop blinking  */
s32 ixgbe_blink_led_stop_generic(struct ixgbe_hw *hw, u32 index)
/* ixgbe_blink_led_stop_generic - Stop blinking LED based on index. @hw: pointer to hardware structure @index: led number to stop blinking  */
s32 ixgbe_blink_led_stop_generic(struct ixgbe_hw *hw, u32 index)
{
	u32 autoc_reg = IXGBE_READ_REG(hw, IXGBE_AUTOC);
	u32 led_reg = IXGBE_READ_REG(hw, IXGBE_LEDCTL);
	autoc_reg &= ~IXGBE_AUTOC_FLU;
	autoc_reg |= IXGBE_AUTOC_AN_RESTART;
	IXGBE_WRITE_REG(hw, IXGBE_AUTOC, autoc_reg);
	led_reg &= ~IXGBE_LED_MODE_MASK(index);
	led_reg &= ~IXGBE_LED_BLINK(index);
	led_reg |= IXGBE_LED_LINK_ACTIVE << IXGBE_LED_MODE_SHIFT(index);
	IXGBE_WRITE_REG(hw, IXGBE_LEDCTL, led_reg);
	IXGBE_WRITE_FLUSH(hw);
	return 0;
}