From f1e75dfcbe0bc7d13772211fa58004240aeb79cd Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Thu, 22 Jul 2010 15:20:00 +0000 Subject: 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 --- drivers/dahdi/wct4xxp/base.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit v1.2.3