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. git-svn-id: http://svn.astersk.org/svn/dahdi/tools/trunk@9482 17933a7a-c749-41c5-a318-cba88f637d49
This commit is contained in:
parent
55a9fd2da2
commit
e38b85fde9
@ -349,6 +349,9 @@ udev_delayed_load() {
|
|||||||
run_fxload -D "$DEVICE" -I "$FIRM_USB"
|
run_fxload -D "$DEVICE" -I "$FIRM_USB"
|
||||||
;;
|
;;
|
||||||
e4e4/11[3456]1/*)
|
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
|
if [ "$prod_id" = 1131 ]; then
|
||||||
FIRM_FPGA="FPGA_FXS.hex" # Legacy
|
FIRM_FPGA="FPGA_FXS.hex" # Legacy
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user