[svn-commits] sruffell: branch linux/sruffell/dahdi-linux-wctc4xxp r8686 - /linux/team/sruf...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon May 24 14:46:42 CDT 2010
Author: sruffell
Date: Mon May 24 14:46:40 2010
New Revision: 8686
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8686
Log:
wctc4xxp: Shorten wait time for link from 10 to 1 second
Modified:
linux/team/sruffell/dahdi-linux-wctc4xxp/drivers/dahdi/wctc4xxp/base.c
Modified: linux/team/sruffell/dahdi-linux-wctc4xxp/drivers/dahdi/wctc4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/sruffell/dahdi-linux-wctc4xxp/drivers/dahdi/wctc4xxp/base.c?view=diff&rev=8686&r1=8685&r2=8686
==============================================================================
--- linux/team/sruffell/dahdi-linux-wctc4xxp/drivers/dahdi/wctc4xxp/base.c (original)
+++ linux/team/sruffell/dahdi-linux-wctc4xxp/drivers/dahdi/wctc4xxp/base.c Mon May 24 14:46:40 2010
@@ -2831,13 +2831,12 @@
wctc4xxp_wait_for_link(struct wcdte *wc)
{
int reg;
- unsigned int delay_count = 0;
+ unsigned long stop;
+ stop = jiffies + HZ;
do {
reg = wctc4xxp_getctl(wc, 0x00fc);
msleep(2);
- delay_count++;
-
- if (delay_count >= 5000) {
+ if (time_after(jiffies, stop)) {
DTE_PRINTK(ERR, "Failed to link to DTE processor!\n");
return -EIO;
}
More information about the svn-commits
mailing list