[svn-commits] sruffell: linux/trunk r6219 - /linux/trunk/drivers/dahdi/wctc4xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Mar 23 18:48:31 CDT 2009


Author: sruffell
Date: Mon Mar 23 18:48:27 2009
New Revision: 6219

URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=6219
Log:
Setup the TC400M to poll the own bit on the descriptor ring.

On certain systems having the hardware poll the descriptor ring provides more
reliable operation that strobbing the transmit demand poll and receive demand
poll register.

Modified:
    linux/trunk/drivers/dahdi/wctc4xxp/base.c

Modified: linux/trunk/drivers/dahdi/wctc4xxp/base.c
URL: http://svn.digium.com/svn-view/dahdi/linux/trunk/drivers/dahdi/wctc4xxp/base.c?view=diff&rev=6219&r1=6218&r2=6219
==============================================================================
--- linux/trunk/drivers/dahdi/wctc4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wctc4xxp/base.c Mon Mar 23 18:48:27 2009
@@ -955,6 +955,8 @@
 static inline void
 wctc4xxp_transmit_demand_poll(struct wcdte *wc)
 {
+	return;
+# if 0
 	__wctc4xxp_setctl(wc, 0x0008, 0x00000000);
 
 	/* \todo Investigate why this register needs to be written twice in
@@ -964,6 +966,7 @@
 	 * problem with the dte firmware.
 	 */
 	__wctc4xxp_setctl(wc, 0x0008, 0x00000000);
+#endif
 }
 
 /* Returns the size, in bytes, of a CSM_ENCAPS packet, given the number of
@@ -2409,7 +2412,7 @@
 		(newjiffies > jiffies))
 		msleep(1);
 
-	wctc4xxp_setctl(wc, 0x0000, reg);
+	wctc4xxp_setctl(wc, 0x0000, reg | 0x60000);
 
 	/* Configure watchdogs, access, etc */
 	wctc4xxp_setctl(wc, 0x0030, 0x00280048);




More information about the svn-commits mailing list