[svn-commits] sruffell: branch linux/2.4 r9675 - /linux/branches/2.4/drivers/dahdi/wctdm24xxp/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jan 20 23:30:30 CST 2011


Author: sruffell
Date: Thu Jan 20 23:30:25 2011
New Revision: 9675

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9675
Log:
wctdm24xxp: Detect FXS modules based on the 3210 SLIC.

Fixes a regression introduced in revision 5916 where FXS modules based
on the 3210 were not properly detected.

(closes issue #18184)
Reported by: bsexton
Patches:
      dahdi-fxo-detect.diff uploaded by bsexton (license 1133)

Signed-off-by: Shaun Ruffell <sruffell at digium.com>

Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9456

Modified:
    linux/branches/2.4/drivers/dahdi/wctdm24xxp/base.c

Modified: linux/branches/2.4/drivers/dahdi/wctdm24xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.4/drivers/dahdi/wctdm24xxp/base.c?view=diff&rev=9675&r1=9674&r2=9675
==============================================================================
--- linux/branches/2.4/drivers/dahdi/wctdm24xxp/base.c (original)
+++ linux/branches/2.4/drivers/dahdi/wctdm24xxp/base.c Thu Jan 20 23:30:25 2011
@@ -2261,7 +2261,7 @@
 
 	/* let's be really sure this is an FXS before we continue */
 	reg1 = wctdm_getreg(wc, card, 1);
-	if ((0x80 != (blah & 0xf0)) || (0x88 != reg1)) {
+	if ((0x80 != (blah & 0xf0)) || ((0x88 != reg1) && (0x08 != reg1))) {
 		if (debug & DEBUG_CARD)
 			dev_info(&wc->vb.pdev->dev, "DEBUG: not FXS b/c reg0=%x or reg1 != 0x88 (%x).\n", blah, reg1);
 		return -1;




More information about the svn-commits mailing list