From 0df629312b8167561215d95773a2b7a7fdee0b40 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 25 Feb 2010 17:33:49 +0000 Subject: voicebus: Fix for commit r8003. Revision 8003 added timeouts when loading the firmware, but there was an error in the timeout logic and also the timeout wasn't waiting long enough. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8093 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/vpmadt032_loader/dahdi_vpmadt032_loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dahdi/vpmadt032_loader/dahdi_vpmadt032_loader.c b/drivers/dahdi/vpmadt032_loader/dahdi_vpmadt032_loader.c index b0b9286..04046bd 100644 --- a/drivers/dahdi/vpmadt032_loader/dahdi_vpmadt032_loader.c +++ b/drivers/dahdi/vpmadt032_loader/dahdi_vpmadt032_loader.c @@ -116,7 +116,7 @@ static int vpmadt032_load_firmware(struct voicebus *vb) pci_set_drvdata(vb->pdev, ctx); old = vb->ops; vb->ops = &loader_operations; - if (wait_for_completion_timeout(&ctx->done, HZ*2)) + if (!wait_for_completion_timeout(&ctx->done, HZ*20)) ret = -EIO; vb->ops = old; pci_set_drvdata(vb->pdev, old_drvdata); -- cgit v1.2.3