[svn-commits] tzafrir: branch tools/2.4 r9740 - in /tools/branches/2.4: ./ xpp/xpp_fxloader

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Feb 8 08:04:54 CST 2011


Author: tzafrir
Date: Tue Feb  8 08:04:50 2011
New Revision: 9740

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9740
Log:
xpp_fxloader: Don't try to load FPGA firmware twice

When called from udev to load the FPGA firmware, make sure that this is
not the event generated for the first end-point of the existing two, as
we need to talk with the second one.

This is probably better done in the udev rules, but will be slightly
more complicated to apply only to the FPGA loading and not to USB
firmware loading.

Merged revisions 9482 via svnmerge from 
http://svn.digium.com/svn/dahdi/tools/trunk

Modified:
    tools/branches/2.4/   (props changed)
    tools/branches/2.4/xpp/xpp_fxloader

Propchange: tools/branches/2.4/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Tue Feb  8 08:04:50 2011
@@ -1,1 +1,1 @@
-/tools/trunk:1-9220,9313,9426,9452,9458,9473
+/tools/trunk:1-9220,9313,9426,9452,9458,9473,9482

Modified: tools/branches/2.4/xpp/xpp_fxloader
URL: http://svnview.digium.com/svn/dahdi/tools/branches/2.4/xpp/xpp_fxloader?view=diff&rev=9740&r1=9739&r2=9740
==============================================================================
--- tools/branches/2.4/xpp/xpp_fxloader (original)
+++ tools/branches/2.4/xpp/xpp_fxloader Tue Feb  8 08:04:50 2011
@@ -349,6 +349,9 @@
 		run_fxload -D "$DEVICE" -I "$FIRM_USB"
 		;;
 	e4e4/11[3456]1/*)
+		# There are potentially two separate udev events, for
+		# each of the two endpoints. Ignore the first interface:
+		case "$DEVPATH" in *.0) exit 0;; esac
 		if [ "$prod_id" = 1131 ]; then
 			FIRM_FPGA="FPGA_FXS.hex"	# Legacy
 		else




More information about the svn-commits mailing list