[svn-commits] sruffell: linux/trunk r10161 - /linux/trunk/drivers/dahdi/wctdm24xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Aug 30 11:38:05 CDT 2011


Author: sruffell
Date: Tue Aug 30 11:38:01 2011
New Revision: 10161

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10161
Log:
wctdm24xxp: Reset the polarity debounce setting when battery is lost.

Wait until we have de-bounced the presence of battery before moving on the
check for changes in polarity. This removes the sometimes random
polarity messages generated on an FXO port when the far side drops
battery from a supervisor disconnect.

Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Acked-by: Russ Meyerriecks <rmeyerriecks at digium.com>

Modified:
    linux/trunk/drivers/dahdi/wctdm24xxp/base.c

Modified: linux/trunk/drivers/dahdi/wctdm24xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wctdm24xxp/base.c?view=diff&rev=10161&r1=10160&r2=10161
==============================================================================
--- linux/trunk/drivers/dahdi/wctdm24xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wctdm24xxp/base.c Tue Aug 30 11:38:01 2011
@@ -1964,6 +1964,9 @@
 		   battery present or unknown, no debounce timer
 		   battery present or unknown, debounce timer (going to battery lost)
 		*/
+
+		fxo->lastpol = fxo->polarity;
+		fxo->polaritydebounce = 0;
 
 		if (fxo->battery == BATTERY_LOST) {
 			if (fxo->battdebounce) {




More information about the svn-commits mailing list