/* Clears the I2C bus by sending nine clock pulses. Used when data line is stuck low.  */
static void ixgbe_i2c_bus_clear(struct ixgbe_hw *hw)
/* Clears the I2C bus by sending nine clock pulses. Used when data line is stuck low.  */
static void ixgbe_i2c_bus_clear(struct ixgbe_hw *hw)
{
	u32 i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL);
	u32 i;
	ixgbe_set_i2c_data(hw, &i2cctl, 1);
	for (i = 0; i < 9; i++) {
		ixgbe_raise_i2c_clk(hw, &i2cctl);
		udelay(IXGBE_I2C_T_HIGH);
		ixgbe_lower_i2c_clk(hw, &i2cctl);
		udelay(IXGBE_I2C_T_LOW);
	}
	ixgbe_i2c_stop(hw);
}