[svn-commits] rmeyerriecks: branch linux/rmeyerriecks/dahdi-linux-maintmodes r7676 - /linux...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Dec 10 17:26:05 CST 2009


Author: rmeyerriecks
Date: Thu Dec 10 17:26:01 2009
New Revision: 7676

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7676
Log:
Enabled the errored second interrupts, added instrumentation to test them

Modified:
    linux/team/rmeyerriecks/dahdi-linux-maintmodes/drivers/dahdi/wct4xxp/base.c

Modified: linux/team/rmeyerriecks/dahdi-linux-maintmodes/drivers/dahdi/wct4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/rmeyerriecks/dahdi-linux-maintmodes/drivers/dahdi/wct4xxp/base.c?view=diff&rev=7676&r1=7675&r2=7676
==============================================================================
--- linux/team/rmeyerriecks/dahdi-linux-maintmodes/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/team/rmeyerriecks/dahdi-linux-maintmodes/drivers/dahdi/wct4xxp/base.c Thu Dec 10 17:26:01 2009
@@ -430,6 +430,8 @@
 #define IERR_T 0x1B		/* Single Bit Defect Insertion Register */
 enum{IBV, IPE, ICASE, ICRCE, IMFE, IFASE};
 #define ISR3_SEC (1 << 6)	/* Internal one-second interrupt bit mask */
+#define ISR3_ES (1 << 7)	/* Errored Second interrupt bit mask */
+#define ESM 0x47		/* Errored Second mask register */
 
 #define FMR2_T 0x1E		/* Framer Mode Register 2 */
 #define FMR2_PLB (1 << 2)	/* Framer Mode Register 2 */
@@ -1804,7 +1806,14 @@
 		/* Enable 1sec timer interrupt */
 		reg = t4_framer_in(wc, x, FMR1_T);
 		t4_framer_out(wc, x, FMR1_T, (reg | FMR1_ECM));
-		printk(KERN_DEBUG "Enabled 1sec error counter interrupt\n");
+		dev_info(&wc->dev->dev, "Enabled 1sec error counter "\
+							"interrupt\n");
+
+		/* Enable Errored Second interrupt */
+		t4_framer_out(wc, x, ESM, 0);
+		dev_info(&wc->dev->dev, "Enabled errored second interrupt\n");
+
+
 	}
 	set_span_devicetype(wc);
 }
@@ -2837,6 +2846,10 @@
 		ts->span.prbscount = t4_framer_in(wc, span, FRS1_T);
 	}
 
+	if (isr3 & ISR3_ES) {
+		dev_info(&wc->dev->dev, "Errored second\n");
+	}
+
 	if (isr3 & 0x08) {
 		reg = t4_framer_in(wc, span, FRS1_T);
 		printk(KERN_INFO "FRS1: %d\n", reg);




More information about the svn-commits mailing list