[dahdi-commits] dahdi/linux.git branch "master" updated.
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Wed Jul 23 16:24:53 CDT 2014
branch "master" has been updated
via 90b6712d01995b97b4399c4723fc6b80bbc6552f (commit)
from 31cbf7a90ed8dee587105e96420da0b01ce8a859 (commit)
Summary of changes:
drivers/dahdi/wcte13xp-base.c | 4 ++++
1 file changed, 4 insertions(+)
- Log -----------------------------------------------------------------
commit 90b6712d01995b97b4399c4723fc6b80bbc6552f
Author: Russ Meyerriecks <rmeyerriecks at digium.com>
Date: Wed Jul 23 15:00:07 2014 -0500
wcte13xp: Reset span alarm to RED on startup
A fresh modprobe and dahdi_cfg would cause a temporary green alarm state on the
driver 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>
Acked-by: Shaun Ruffell <sruffell at digium.com>
diff --git a/drivers/dahdi/wcte13xp-base.c b/drivers/dahdi/wcte13xp-base.c
index 4fe954a..c061975 100644
--- a/drivers/dahdi/wcte13xp-base.c
+++ b/drivers/dahdi/wcte13xp-base.c
@@ -1316,6 +1316,10 @@ static int t13x_startup(struct file *file, struct dahdi_span *span)
/* Reset framer with proper parameters and start */
t13x_framer_start(wc);
+ /* Reset span alarm state to RED to prevent false
+ * temporary GREEN state on span bringup */
+ span->alarms |= DAHDI_ALARM_RED;
+
/* Do we want to SYNC on receive or not. This must always happen after
* the framer is fully reset. */
wcxb_set_clksrc(&wc->xb,
-----------------------------------------------------------------------
--
dahdi/linux.git
More information about the dahdi-commits
mailing list