summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wct4xxp
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-08-27 21:59:27 +0000
committerShaun Ruffell <sruffell@digium.com>2010-08-27 21:59:27 +0000
commit715d345311fdaf79aa05d8bae4931ba2c00a0b4d (patch)
treea384c565f3dc128a95e700e84408a1277926774c /drivers/dahdi/wct4xxp
parentccc688b3d3b871996cdcae38ddca93b155711e30 (diff)
wct4xxp: Moving the transmit short detection behind debug module param.
This needs some more testing before it's on by default. If the card is otherwise functioning, these messages may be confusing to the user. If the card is not functioning, the driver can be reloaded with debug to check for this condition. Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9205 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wct4xxp')
-rw-r--r--drivers/dahdi/wct4xxp/base.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c
index d4d066a..6dfc8cb 100644
--- a/drivers/dahdi/wct4xxp/base.c
+++ b/drivers/dahdi/wct4xxp/base.c
@@ -3218,11 +3218,13 @@ static void t4_check_alarms(struct t4 *wc, int span)
alarms |= DAHDI_ALARM_LMFA;
}
- /* Check to ensure the xmit line isn't shorted */
- if (unlikely(d & FRS1_XLS)) {
- dev_info(&wc->dev->dev,
- "Detected a possible hardware malfunction"\
- " this card may need servicing\n");
+ if (unlikely(debug)) {
+ /* Check to ensure the xmit line isn't shorted */
+ if (unlikely(d & FRS1_XLS)) {
+ dev_info(&wc->dev->dev,
+ "Detected a possible hardware malfunction"\
+ " this card may need servicing\n");
+ }
}
if (((!ts->span.alarms) && alarms) ||