[dahdi-commits] sruffell: linux/trunk r6126 - /linux/trunk/drivers/dahdi/voicebus.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Wed Mar 11 09:51:14 CDT 2009
Author: sruffell
Date: Wed Mar 11 09:51:11 2009
New Revision: 6126
URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=6126
Log:
Allow 10ms for voicebus hardware to settle after reset.
The voicebus hardware needs more time to settle after a reset. The short settle
time explains why there was frequently one IRQ miss reported in the proc file
for the spans.
Reported by: jsloan
Modified:
linux/trunk/drivers/dahdi/voicebus.c
Modified: linux/trunk/drivers/dahdi/voicebus.c
URL: http://svn.digium.com/svn-view/dahdi/linux/trunk/drivers/dahdi/voicebus.c?view=diff&rev=6126&r1=6125&r2=6126
==============================================================================
--- linux/trunk/drivers/dahdi/voicebus.c (original)
+++ linux/trunk/drivers/dahdi/voicebus.c Wed Mar 11 09:51:11 2009
@@ -6,16 +6,12 @@
* Matthew Fredrickson <creslin at digium.com>, and
* Michael Spiceland <mspiceland at digium.com>
*
- * Copyright (C) 2007-2008 Digium, Inc.
+ * Copyright (C) 2007-2009 Digium, Inc.
*
* All rights reserved.
* VoiceBus is a registered trademark of Digium.
*
- * \todo Make the client drivers back out gracefully when presented with a
- * signal.
- * \todo Modify clients to sleep with timeout when waiting for interrupt.
- * \todo Check on a 64-bit CPU / Kernel
*/
/*
@@ -655,7 +651,7 @@
* The calls to setsdi above toggle the reset line of the CPLD. Wait
* here to give the CPLD time to stabilize after reset.
*/
- mdelay(1);
+ msleep(10);
return ((reg&0x7) == 0x4) ? 0 : -EIO;
}
@@ -890,10 +886,6 @@
*/
/*
- * NOTE: The very first buffer after coming out of reset is used to
- * prime the pump and is lost. So we do not want the client driver to
- * prepare it, since it will never see the corresponding receive
- * buffer.
* NOTE: handle_transmit is normally only called in the context of the
* deferred processing thread. Since the deferred processing thread
* is known to not be running at this point, it is safe to call the
More information about the dahdi-commits
mailing list