summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcte12xp
diff options
context:
space:
mode:
authorRuss Meyerriecks <rmeyerriecks@digium.com>2010-12-08 22:11:53 +0000
committerRuss Meyerriecks <rmeyerriecks@digium.com>2010-12-08 22:11:53 +0000
commite78e5fa40c52d1d6dd49ace2936c23790cc6ae46 (patch)
tree6896a9e89aa1abec5c3f6c915feedbbf1ab69d12 /drivers/dahdi/wcte12xp
parent9fa774c302c5c31a67a50bf125f8f51cd18fb1b8 (diff)
dahdi: Removing loopstop maint function
DAHDI_MAINT_LOOPSTOP is being removed due to the redundancy with DAHDI_MAINT_NONE. Also removing some timing logic, as amount of time a loopup or loopdown signal is held on the line, is now defined in userspace with dahdi_maint. Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com> Acked-by: Shaun Ruffell <sruffell@digium.com> Acked-by: Kinsey Moore <kmoore@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9515 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcte12xp')
-rw-r--r--drivers/dahdi/wcte12xp/base.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c
index 9870aaf..a97cd32 100644
--- a/drivers/dahdi/wcte12xp/base.c
+++ b/drivers/dahdi/wcte12xp/base.c
@@ -1161,7 +1161,6 @@ static void t1xxp_maint_work(struct work_struct *work)
case DAHDI_MAINT_REMOTELOOP:
case DAHDI_MAINT_LOOPUP:
case DAHDI_MAINT_LOOPDOWN:
- case DAHDI_MAINT_LOOPSTOP:
t1_info(wc, "Only local loop supported in E1 mode\n");
goto cleanup;
default:
@@ -1202,10 +1201,6 @@ static void t1xxp_maint_work(struct work_struct *work)
t1xxp_clear_maint(span);
t1_setreg(wc, 0x21, 0x60);
break;
- case DAHDI_MAINT_LOOPSTOP:
- t1xxp_clear_maint(w->span);
- t1_setreg(w->wc, 0x21, 0x40);
- break;
default:
t1_info(wc, "Unknown T1 maint command: %d\n", cmd);
return;
@@ -1230,7 +1225,6 @@ static int t1xxp_maint(struct dahdi_span *span, int cmd)
case DAHDI_MAINT_REMOTELOOP:
case DAHDI_MAINT_LOOPUP:
case DAHDI_MAINT_LOOPDOWN:
- case DAHDI_MAINT_LOOPSTOP:
t1_info(wc, "Only local loop supported in E1 mode\n");
return -ENOSYS;
default:
@@ -1245,7 +1239,6 @@ static int t1xxp_maint(struct dahdi_span *span, int cmd)
case DAHDI_MAINT_NETWORKPAYLOADLOOP:
case DAHDI_MAINT_LOOPUP:
case DAHDI_MAINT_LOOPDOWN:
- case DAHDI_MAINT_LOOPSTOP:
break;
default:
t1_info(wc, "Unknown T1 maint command: %d\n", cmd);
@@ -1255,8 +1248,7 @@ static int t1xxp_maint(struct dahdi_span *span, int cmd)
work = kmalloc(sizeof(*work), GFP_ATOMIC);
if (!work) {
- t1_info(wc, "Failed to allocate memory for "
- "DAHDI_MAINT_LOOPSTOP\n");
+ t1_info(wc, "Failed to allocate memory for workqueue\n");
return -ENOMEM;
}