[svn-commits] mattf: branch 1.4 r4227 - in /branches/1.4/kernel/wct4xxp: base.c wct4xxp.h
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri May 2 13:16:13 CDT 2008
Author: mattf
Date: Fri May 2 13:16:12 2008
New Revision: 4227
URL: http://svn.digium.com/view/zaptel?view=rev&rev=4227
Log:
Move the checktiming parameter to a flag in checkflag as well
Modified:
branches/1.4/kernel/wct4xxp/base.c
branches/1.4/kernel/wct4xxp/wct4xxp.h
Modified: branches/1.4/kernel/wct4xxp/base.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/wct4xxp/base.c?view=diff&rev=4227&r1=4226&r2=4227
==============================================================================
--- branches/1.4/kernel/wct4xxp/base.c (original)
+++ branches/1.4/kernel/wct4xxp/base.c Fri May 2 13:16:12 2008
@@ -319,7 +319,6 @@
unsigned int passno; /* number of interrupt passes */
char *variety;
int last0; /* for detecting double-missed IRQ */
- int checktiming; /* Set >0 to cause the timing source to be checked */
/* DMA related fields */
unsigned int dmactrl;
@@ -1429,7 +1428,9 @@
/* No longer in use, disable interrupts */
printk("TE%dXXP: Disabling interrupts since there are no active spans\n", wc->numspans);
set_bit(T4_STOP_DMA, &wc->checkflag);
- } else wc->checktiming = 1;
+ } else
+ set_bit(T4_CHECK_TIMING, &wc->checkflag);
+
spin_unlock_irqrestore(&wc->reglock, flags);
/* Wait for interrupt routine to shut itself down */
@@ -1470,7 +1471,7 @@
wc->tspans[lc->sync - 1]->sync = span->spanno;
wc->tspans[lc->sync - 1]->psync = span->offset + 1;
}
- wc->checktiming = 1;
+ set_bit(T4_CHECK_TIMING, &wc->checkflag);
/* Make sure this is clear in case of multiple startup and shutdown
* iterations */
@@ -1833,7 +1834,7 @@
}
}
} else
- cards[0]->checktiming = 1;
+ set_bit(T4_CHECK_TIMING, &cards[0]->checkflag);
#endif
spin_unlock_irqrestore(&synclock, flags);
return 0;
@@ -1843,7 +1844,7 @@
{
int x;
printk("timing source auto card %d!\n", wc->num);
- wc->checktiming = 0;
+ clear_bit(T4_CHECK_TIMING, &wc->checkflag);
if (timingcable) {
__t4_findsync(wc);
} else {
@@ -2523,7 +2524,7 @@
if (((!ts->span.alarms) && alarms) ||
(ts->span.alarms && (!alarms)))
- wc->checktiming = 1;
+ set_bit(T4_CHECK_TIMING, &wc->checkflag);
/* Keep track of recovering */
if ((!alarms) && ts->span.alarms)
@@ -2887,7 +2888,7 @@
__handle_leds(wc);
- if (wc->checktiming > 0)
+ if (test_bit(T4_CHECK_TIMING, &wc->checkflag))
__t4_set_timing_source_auto(wc);
spin_unlock_irqrestore(&wc->reglock, flags);
@@ -3027,7 +3028,7 @@
spin_lock(&wc->reglock);
- if (unlikely(wc->checktiming > 0)) {
+ if (unlikely(test_bit(T4_CHECK_TIMING, &wc->checkflag))) {
__t4_set_timing_source_auto(wc);
}
@@ -3532,7 +3533,7 @@
return -1;
}
}
- wc->checktiming = 1;
+ set_bit(T4_CHECK_TIMING, &wc->checkflag);
spin_lock_irqsave(&wc->reglock, flags);
__t4_set_timing_source(wc,4, 0, 0);
spin_unlock_irqrestore(&wc->reglock, flags);
Modified: branches/1.4/kernel/wct4xxp/wct4xxp.h
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/wct4xxp/wct4xxp.h?view=diff&rev=4227&r1=4226&r2=4227
==============================================================================
--- branches/1.4/kernel/wct4xxp/wct4xxp.h (original)
+++ branches/1.4/kernel/wct4xxp/wct4xxp.h Fri May 2 13:16:12 2008
@@ -108,6 +108,7 @@
#define T4_CHECK_VPM 0
#define T4_LOADING_FW 1
#define T4_STOP_DMA 2
+#define T4_CHECK_TIMING 3
#define WCT4_GET_REGS _IOW (ZT_CODE, 60, struct t4_regs)
More information about the svn-commits
mailing list