diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-02-25 17:33:49 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-02-25 17:33:49 +0000 |
commit | 0df629312b8167561215d95773a2b7a7fdee0b40 (patch) | |
tree | 023382d39b211e2a5ad74762293b464a46246a04 | |
parent | 808e4b9fcad4d0e3dc2e668abb72ce476437aa9d (diff) |
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
-rw-r--r-- | drivers/dahdi/vpmadt032_loader/dahdi_vpmadt032_loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |