[svn-commits] rmeyerriecks: branch linux/rmeyerriecks/dahdi-linux-alarms r8840 - in /linux/...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Jun 29 16:10:36 CDT 2010
Author: rmeyerriecks
Date: Tue Jun 29 16:10:26 2010
New Revision: 8840
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8840
Log:
Added hardware transformer check
QuadFalc has the ability to test if the transformer is
performing correctly. If the components between the framer
and the physical span interface are shorted out or opened
for any reason we can now detect it. Possible causes for
tripping this error could be a broken transformer from
an electrical spike or a board manufacturing error.
Modified:
linux/team/rmeyerriecks/dahdi-linux-alarms/drivers/dahdi/dahdi-base.c
linux/team/rmeyerriecks/dahdi-linux-alarms/drivers/dahdi/wct4xxp/base.c
linux/team/rmeyerriecks/dahdi-linux-alarms/include/dahdi/user.h
Modified: linux/team/rmeyerriecks/dahdi-linux-alarms/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/rmeyerriecks/dahdi-linux-alarms/drivers/dahdi/dahdi-base.c?view=diff&rev=8840&r1=8839&r2=8840
==============================================================================
--- linux/team/rmeyerriecks/dahdi-linux-alarms/drivers/dahdi/dahdi-base.c (original)
+++ linux/team/rmeyerriecks/dahdi-linux-alarms/drivers/dahdi/dahdi-base.c Tue Jun 29 16:10:26 2010
@@ -3499,16 +3499,6 @@
module_printk(KERN_NOTICE,
"Span %d: Loss of Multi-Frame "\
"Alignment\n", span->spanno);
- }
- if (span->alarms & DAHDI_ALARM_XLS) {
- module_printk(KERN_NOTICE,
- "Span %d: Transmit Line Short\n",
- span->spanno);
- }
- if (span->alarms & DAHDI_ALARM_XLO) {
- module_printk(KERN_NOTICE,
- "Span %d: Transmit Line Open\n",
- span->spanno);
}
}
}
Modified: linux/team/rmeyerriecks/dahdi-linux-alarms/drivers/dahdi/wct4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/rmeyerriecks/dahdi-linux-alarms/drivers/dahdi/wct4xxp/base.c?view=diff&rev=8840&r1=8839&r2=8840
==============================================================================
--- linux/team/rmeyerriecks/dahdi-linux-alarms/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/team/rmeyerriecks/dahdi-linux-alarms/drivers/dahdi/wct4xxp/base.c Tue Jun 29 16:10:26 2010
@@ -2977,10 +2977,13 @@
alarms |= DAHDI_ALARM_LFA;
if (c & FRS0_LMFA)
alarms |= DAHDI_ALARM_LMFA;
- if (d & FRS1_XLS)
- alarms |= DAHDI_ALARM_XLS;
- if (d & FRS1_XLO)
- alarms |= DAHDI_ALARM_XLO;
+ }
+
+ /* Check to ensure the transformer isn't busted */
+ if (unlikely((d & FRS1_XLO) || (d & FRS1_XLS))) {
+ dev_info(&wc->dev->dev,
+ "Detected a possible hardware malfunction"\
+ " this card may need servicing\n");
}
if (((!ts->span.alarms) && alarms) ||
Modified: linux/team/rmeyerriecks/dahdi-linux-alarms/include/dahdi/user.h
URL: http://svnview.digium.com/svn/dahdi/linux/team/rmeyerriecks/dahdi-linux-alarms/include/dahdi/user.h?view=diff&rev=8840&r1=8839&r2=8840
==============================================================================
--- linux/team/rmeyerriecks/dahdi-linux-alarms/include/dahdi/user.h (original)
+++ linux/team/rmeyerriecks/dahdi-linux-alarms/include/dahdi/user.h Tue Jun 29 16:10:26 2010
@@ -325,8 +325,6 @@
#define DAHDI_ALARM_LOS (1 << 8) /* Loss of Signal */
#define DAHDI_ALARM_LFA (1 << 9) /* Loss of Frame Alignment */
#define DAHDI_ALARM_LMFA (1 << 10)/* Loss of Multi-Frame Align */
-#define DAHDI_ALARM_XLS (1 << 11)/* Transmit line Short */
-#define DAHDI_ALARM_XLO (1 << 12)/* Transmit line Open */
/* Maintenance modes */
#define DAHDI_MAINT_NONE 0 /* Normal Mode */
More information about the svn-commits
mailing list