summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wct4xxp
diff options
context:
space:
mode:
authorMatthew Fredrickson <creslin@digium.com>2010-07-22 15:20:00 +0000
committerMatthew Fredrickson <creslin@digium.com>2010-07-22 15:20:00 +0000
commit558c83c76eb5eb077357857722a7dc44f7a049a9 (patch)
tree921f489737de37691316e0b057a7831160b76fa0 /drivers/dahdi/wct4xxp
parent76bee485993e93a84891c52a9c72341b8bdf9f19 (diff)
Make sure we check max_latency to see if it's greater than the minimum required latency for the board in question.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8968 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wct4xxp')
-rw-r--r--drivers/dahdi/wct4xxp/base.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c
index f49a879..d2a07ca 100644
--- a/drivers/dahdi/wct4xxp/base.c
+++ b/drivers/dahdi/wct4xxp/base.c
@@ -4272,6 +4272,11 @@ static int __devinit t4_init_one(struct pci_dev *pdev, const struct pci_device_i
else
init_latency = 2;
}
+
+ if (max_latency < init_latency) {
+ printk(KERN_INFO "maxlatency must be set to something greater than %d ms, increasing it to %d\n", init_latency, init_latency);
+ max_latency = init_latency;
+ }
if (t4_allocate_buffers(wc, init_latency, NULL, NULL)) {
return -ENOMEM;