From 8428452ad19c6f2691d83117dd53668a53c5ce94 Mon Sep 17 00:00:00 2001 From: Russ Meyerriecks Date: Thu, 31 Jul 2014 14:25:58 -0500 Subject: [PATCH] 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 --- drivers/dahdi/wcte43x-base.c | 4 ++++ 1 file changed, 4 insertions(+) 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++) {