[svn-commits] tzafrir: tools/trunk r9482 - /tools/trunk/xpp/xpp_fxloader

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Nov 16 04:56:57 CST 2010


Author: tzafrir
Date: Tue Nov 16 04:56:54 2010
New Revision: 9482

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9482
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.

Modified:
    tools/trunk/xpp/xpp_fxloader

Modified: tools/trunk/xpp/xpp_fxloader
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/xpp_fxloader?view=diff&rev=9482&r1=9481&r2=9482
==============================================================================
--- tools/trunk/xpp/xpp_fxloader (original)
+++ tools/trunk/xpp/xpp_fxloader Tue Nov 16 04:56:54 2010
@@ -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