[dahdi-commits] dahdi/linux.git branch "master" updated.

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Fri Aug 1 16:17:32 CDT 2014


branch "master" has been updated
       via  8428452ad19c6f2691d83117dd53668a53c5ce94 (commit)
      from  90b6712d01995b97b4399c4723fc6b80bbc6552f (commit)

Summary of changes:
 drivers/dahdi/wcte43x-base.c |    4 ++++
 1 file changed, 4 insertions(+)


- Log -----------------------------------------------------------------
commit 8428452ad19c6f2691d83117dd53668a53c5ce94
Author: Russ Meyerriecks <rmeyerriecks at digium.com>
Date:   Thu Jul 31 14:25:58 2014 -0500

    wcte43x: Reset span alarm to RED on startup
    
    A fresh modprobe and dahdi_cfg would cause a temporary green alarm state on the
    spans for a second while the alarm debounced into RED. New logic keeps the
    spans alarm state as NONE during the unconfigured state, but sets the alarm
    state to RED after the framer reset in the startup logic.
    
    Signed-off-by: Russ Meyerriecks <rmeyerriecks at digium.com>

diff --git a/drivers/dahdi/wcte43x-base.c b/drivers/dahdi/wcte43x-base.c
index c9bc372..dee0574 100644
--- a/drivers/dahdi/wcte43x-base.c
+++ b/drivers/dahdi/wcte43x-base.c
@@ -1766,6 +1766,10 @@ static void t43x_framer_start(struct t43x *wc)
 		t43x_set_cas_mode(wc, unit);
 
 		set_bit(DAHDI_FLAGBIT_RUNNING, &ts->span.flags);
+
+		/* Reset span alarm state to RED to prevent false
+		 * temporary GREEN state on span bringup */
+		ts->span.alarms |= DAHDI_ALARM_RED;
 	}
 
 	for (unit = 0; unit < wc->numspans; unit++) {

-----------------------------------------------------------------------


-- 
dahdi/linux.git



More information about the dahdi-commits mailing list