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@digium.com>
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user