Re: [PATCH v2 03/10] rtc: max77686: Use usleep_range() instead of msleep()

From: Laxman Dewangan
Date: Fri Jan 22 2016 - 04:52:04 EST



On Friday 22 January 2016 01:53 AM, Javier Martinez Canillas wrote:
RTC_SEC = 0,
@@ -130,7 +130,8 @@ static int max77686_rtc_update(struct max77686_rtc_info *info,
__func__, ret, data);
else {
/* Minimum 16ms delay required before RTC update. */
- msleep(MAX77686_RTC_UPDATE_DELAY);
+ usleep_range(MAX77686_RTC_UPDATE_DELAY,
+ MAX77686_RTC_UPDATE_DELAY * 2);
}


Instead of making usleep_range(16000, 32000), can we make small range as
usleep_range(16000, 17000)?

I am using as usleep_range(16000, 16000) always.