clocksources, rtcs, and sleeps, oh my!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've been doing a bit of work with the upstream kernel on
exynos5250-snow and noticed an annoying delay of several seconds when
the max77686 rtc gets probed.  The longer time that I sit in the
bootloader the longer the delay is.

I've tracked down the line and found that this little piece of code is
causing the delay:

   /* Minimum 16ms delay required before RTC update. */
   msleep(MAX77686_RTC_UPDATE_DELAY);

...that doesn't make a whole lot of sense, so I tracked things down a
bit more.  It appears that if I disable _either_ the MCT timer _or_
the ARM arch timers that the problem magically goes away.  In other
words, either of these will do it:

mct@101C0000 {
   status = "disabled";
};

timer {
   status = "disabled";
};

Disabling either of the timers also fixes the rather annoying jump
from 0 seconds to ~2910 seconds at boot time.

Does anyone have time to dig into this?

---

Here's the log showing the big jump in time:

[    0.008067] Switching to timer-based delay loop
[ 2910.537817] Console: colour dummy device 80x30

---

...and the big delay when the RTC is probed:

[ 2911.609317] max77686-rtc max77686-rtc: max77686_rtc_probe
[ 2920.652394] max77686-rtc max77686-rtc: rtc core: registered
max77686-rtc as rtc0

---

-Doug
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux