Skip to contentSkip to conversation

ASoC: wm0010: Up the completion timeout to 20ms instead of 10ms

PATCH Applied Dimitris Papastamos 2 participants 2 messages Nov 21, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: wm0010: Up the completion timeout to 20ms instead of 10ms

Increase timeout to be more reliable and avoid the chance of missing interrupts during boot.

---
 sound/soc/codecs/wm0010.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/wm0010.c +2 -2
index 4b68ea8..8ebb8da 100644
@@ -614,7 +614,7 @@ static int wm0010_boot(struct snd_soc_codec *codec)
 	}
 
 	if (!wait_for_completion_timeout(&wm0010->boot_completion,
-					 msecs_to_jiffies(10)))
+					 msecs_to_jiffies(20)))
 		dev_err(codec->dev, "Failed to get interrupt from DSP\n");
 
 	spin_lock_irqsave(&wm0010->irq_lock, flags);
@@ -626,7 +626,7 @@ static int wm0010_boot(struct snd_soc_codec *codec)
 		goto abort;
 
 	if (!wait_for_completion_timeout(&wm0010->boot_completion,
-					 msecs_to_jiffies(10)))
+					 msecs_to_jiffies(20)))
 		dev_err(codec->dev, "Failed to get interrupt from DSP loader.\n");
 
 	spin_lock_irqsave(&wm0010->irq_lock, flags);
Signature · 1 line
1.8.0
Applied
#1 lore raw
Quoted 2 lines · Dimitris Papastamos

Increase timeout to be more reliable and avoid the chance of missing interrupts during boot.

Applied, thanks.