[svn-commits] sruffell: linux/trunk r9205 - /linux/trunk/drivers/dahdi/wct4xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Aug 27 16:59:33 CDT 2010


Author: sruffell
Date: Fri Aug 27 16:59:27 2010
New Revision: 9205

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9205
Log:
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 at digium.com>

Modified:
    linux/trunk/drivers/dahdi/wct4xxp/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=9205&r1=9204&r2=9205
==============================================================================
--- linux/trunk/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wct4xxp/base.c Fri Aug 27 16:59:27 2010
@@ -3218,11 +3218,13 @@
 			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) || 




More information about the svn-commits mailing list