ASoC: arizona: Make FLL lock timeout very high
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 6 Dec 2012 06:29:34 +0000 (15:29 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 6 Dec 2012 07:52:36 +0000 (16:52 +0900)
Provide robustness against low quality FLL sync clocks by increasing the
timeout for lock to an absurdly high point; we should never get anywhere
near hitting the timeout in a real system unless it is failing.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/arizona.c

index bf6844389ebfcce8d9a41628562625cd6afadd80..49d115205810cb599e211844a55519676e706669 100644 (file)
@@ -1016,7 +1016,7 @@ int arizona_set_fll(struct arizona_fll *fll, int source,
                                   ARIZONA_FLL1_SYNC_ENA);
 
        ret = wait_for_completion_timeout(&fll->ok,
-                                         msecs_to_jiffies(25));
+                                         msecs_to_jiffies(250));
        if (ret == 0)
                arizona_fll_warn(fll, "Timed out waiting for lock\n");