[svn-commits] rmeyerriecks: linux/trunk r8279 - in /linux/trunk/drivers/dahdi: wct4xxp/ wct...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Mar 8 12:37:04 CST 2010


Author: rmeyerriecks
Date: Mon Mar  8 12:37:00 2010
New Revision: 8279

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8279
Log:
dahdi_maint: Added local loopback capability in E1 modes

Modified:
    linux/trunk/drivers/dahdi/wct4xxp/base.c
    linux/trunk/drivers/dahdi/wcte12xp/base.c

Modified: linux/trunk/drivers/dahdi/wct4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wct4xxp/base.c?view=diff&rev=8279&r1=8278&r2=8279
==============================================================================
--- linux/trunk/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wct4xxp/base.c Mon Mar  8 12:37:00 2010
@@ -1439,12 +1439,18 @@
 			dev_info(&wc->dev->dev, "Clearing all maint modes\n");
 			break;
 		case DAHDI_MAINT_LOCALLOOP:
+			dev_info(&wc->dev->dev,
+				 "Turning on local loopback\n");
+			t4_clear_maint(span);
+			reg = t4_framer_in(wc, span->offset, LIM0_T);
+			t4_framer_out(wc, span->offset, LIM0_T, (reg|LIM0_LL));
+			break;
 		case DAHDI_MAINT_REMOTELOOP:
 		case DAHDI_MAINT_LOOPUP:
 		case DAHDI_MAINT_LOOPDOWN:
 		case DAHDI_MAINT_LOOPSTOP:
 			dev_info(&wc->dev->dev,
-					"Looping not supported in E1 mode\n");
+					"Only local loop supported in E1 mode\n");
 			break;
 		default:
 			dev_info(&wc->dev->dev,

Modified: linux/trunk/drivers/dahdi/wcte12xp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wcte12xp/base.c?view=diff&rev=8279&r1=8278&r2=8279
==============================================================================
--- linux/trunk/drivers/dahdi/wcte12xp/base.c (original)
+++ linux/trunk/drivers/dahdi/wcte12xp/base.c Mon Mar  8 12:37:00 2010
@@ -1113,11 +1113,15 @@
 			t1_info(wc, "Clearing all maint modes\n");
 			break;
 		case DAHDI_MAINT_LOCALLOOP:
+			t1xxp_clear_maint(span);
+			reg = t1_getreg(wc, LIM0);
+			t1_setreg(wc, LIM0, reg | LIM0_LL);
+			break;
 		case DAHDI_MAINT_REMOTELOOP:
 		case DAHDI_MAINT_LOOPUP:
 		case DAHDI_MAINT_LOOPDOWN:
 		case DAHDI_MAINT_LOOPSTOP:
-			t1_info(wc, "Looping not supported in E1 mode\n");
+			t1_info(wc, "Only local loop supported in E1 mode\n");
 			break;
 		default:
 			t1_info(wc, "Unknown E1 maint command: %d\n", cmd);




More information about the svn-commits mailing list