[svn-commits] tzafrir: linux/trunk r8922 - /linux/trunk/drivers/dahdi/xpp/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jul 14 05:28:15 CDT 2010


Author: tzafrir
Date: Wed Jul 14 05:28:10 2010
New Revision: 8922

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8922
Log:
Set Astribank PRI before initialization

This avoids most cases of sending garbage at startup by setting each port
to tristate mode at init time (in the init script) and enable it back at
DAHDI_STARTUO (end of dahdi_cfg).

Upgrade note: if you have upgraded the files (including init script) but old
module is still loaded, you may end up with the port not getting ever
enabled and the line practically dead. In such a case, reload the new module.

Modified:
    linux/trunk/drivers/dahdi/xpp/card_pri.c
    linux/trunk/drivers/dahdi/xpp/init_card_4_30

Modified: linux/trunk/drivers/dahdi/xpp/card_pri.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/xpp/card_pri.c?view=diff&rev=8922&r1=8921&r2=8922
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/card_pri.c (original)
+++ linux/trunk/drivers/dahdi/xpp/card_pri.c Wed Jul 14 05:28:10 2010
@@ -301,6 +301,8 @@
 #define	REG_PC2		0x81	/* Port Configuration 2	*/
 #define	REG_PC3		0x82	/* Port Configuration 3	*/
 #define	REG_PC4		0x83	/* Port Configuration 4	*/
+
+#define	REG_XPM2	0x28	/* Transmit Pulse Mask 2 */
 
 #define	VAL_PC_SYPR	0x00	/* Synchronous Pulse Receive (Input, low active) */
 #define	VAL_PC_GPI	0x90	/* General purpose input */
@@ -1522,6 +1524,7 @@
 	// Turn on all channels
 	CALL_XMETHOD(XPD_STATE, xpd->xbus, xpd, 1);
 	set_rbslines(xpd, 0);
+	write_subunit(xpd, REG_XPM2, 0x00);
 	return 0;
 }
 

Modified: linux/trunk/drivers/dahdi/xpp/init_card_4_30
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/xpp/init_card_4_30?view=diff&rev=8922&r1=8921&r2=8922
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/init_card_4_30 (original)
+++ linux/trunk/drivers/dahdi/xpp/init_card_4_30 Wed Jul 14 05:28:10 2010
@@ -240,13 +240,14 @@
 	my $portno = $port->{PORT_NUM};
 	my $pri_protocol = $port->get_pri_protocol;
 
+	PRI::gen "$portno WD 28 40"; 	# XPM2.XLT Tristate
+
 	my $cmr5 = sprintf("%x", ($portno << 5));
 
 	PRI::gen "$portno WD 42 $cmr5"; # CMR5.DRSS=portno
 
 	PRI::gen "$portno WD 26 F6"; 	# XPM0: Pulse Shape Programming for R1=18Ohms 
 	PRI::gen "$portno WD 27 02"; 	# XPM1: ...3V Pulse Level at the line (Vp-p=6v)
-	PRI::gen "$portno WD 28 00"; 	# XPM2: ~XLT (transmit line is not in the high impedance state)
 
 					# if (unchannelized)
 	#PRI::gen "$portno WD 1F 22";	# LOOP (Channel Looback): 




More information about the svn-commits mailing list