[dahdi-commits] rmeyerriecks: branch linux/rmeyerriecks/dahdi-linux-maintmodes r7680 - /linux...
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Thu Dec 10 17:26:14 CST 2009
Author: rmeyerriecks
Date: Thu Dec 10 17:26:03 2009
New Revision: 7680
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7680
Log:
Functionalized the error counter reset/init values. Now resetting the counters to
zero as each span is configured and brought online.
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=7680&r1=7679&r2=7680
==============================================================================
--- 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:03 2009
@@ -383,6 +383,7 @@
static int t4_shutdown(struct dahdi_span *span);
static int t4_rbsbits(struct dahdi_chan *chan, int bits);
static int t4_maint(struct dahdi_span *span, int cmd);
+static int t4_reset_counters(struct dahdi_span *span);
#ifdef SUPPORT_GEN1
static int t4_reset_dma(struct t4 *wc);
#endif
@@ -1467,15 +1468,7 @@
t4_framer_out(wc, span->offset, LCR1_T, reg);
break;
case DAHDI_RESET_COUNTERS:
- // TODO Replace this with the call to t4_error_counters
- ts->span.fecount = 0;
- ts->span.crc4count = 0;
- ts->span.cvcount = 0;
- ts->span.ebitcount = 0;
- ts->span.becount = 0;
- ts->span.prbscount = 0;
- ts->span.errsec = 0;
- dev_info(&wc->dev->dev, "Reset error counters\n");
+ t4_reset_counters(span);
break;
default:
printk(KERN_NOTICE "TE%dXXP: Unknown T1 maint command: %d\n", wc->numspans, cmd);
@@ -1832,6 +1825,7 @@
t4_framer_out(wc, x, ESM, 0);
dev_info(&wc->dev->dev, "Enabled errored second interrupt\n");
+ t4_reset_counters(&ts->span);
}
set_span_devicetype(wc);
More information about the dahdi-commits
mailing list