Convert some udelay calls to the preferred usleep_range.
Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
status = 0;
break;
}
- udelay(50);
+ usleep_range(50, 100);
}
if (i == timeout) {
*/
ixgbe_release_eeprom_semaphore(hw);
- udelay(50);
+ usleep_range(50, 100);
/*
* one last try
* If the SMBI bit is 0 when we read it, then the bit will be
if (swsm & IXGBE_SWSM_SWESMBI)
break;
- udelay(50);
+ usleep_range(50, 100);
}
/*
status = 0;
break;
}
- udelay(50);
+ usleep_range(50, 100);
}
/* Now get the semaphore between SW/FW through the REGSMP bit */
if (!(swsm & IXGBE_SWFW_REGSMP))
break;
- udelay(50);
+ usleep_range(50, 100);
}
} else {
hw_dbg(hw, "Software semaphore SMBI between device drivers not granted.\n");