1 comment:
File src/soc/qualcomm/sc7180/clock.c:
Patch Set #1, Line 314: udelay(1);
Sure, I could make it counter based.
Please use the wait_us() helper from <timer.h>, e.g.
if (!wait_us(100, read32(&apss->pll.mode) & LOCK_DET_BMSK)) {
printk(BIOS_ERR, "ERROR: %p PLL did not lock!);
return;
}
(This is assuming 100us are enough to lock the PLL in all cases... please choose the appropriate value. You can use wait_ms() for milliseconds.)
To view, visit change 39234. To unsubscribe, or for help writing mail filters, visit settings.