summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2021-11-03 12:40:46 -0500
committerAndrii Pientsov <andrii.pientsov@globallogic.com>2021-11-18 14:36:34 +0200
commit4f107071a14a79a97135f924f8535b7d225bde50 (patch)
tree2a4e77ac816d14cfab7885e666165542bd9faea5
parentbcf55d23e30e0fa713286c2acb05045de9164855 (diff)
downloadmeta-multitech-4f107071a14a79a97135f924f8535b7d225bde50.tar.gz
meta-multitech-4f107071a14a79a97135f924f8535b7d225bde50.tar.bz2
meta-multitech-4f107071a14a79a97135f924f8535b7d225bde50.zip
Remove rs9113 reset from /etc/init.d/mts-io, as it is redundant
-rwxr-xr-xrecipes-bsp/multitech/mts-io/mts-io.init12
1 files changed, 11 insertions, 1 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init
index c520597..cd93fbb 100755
--- a/recipes-bsp/multitech/mts-io/mts-io.init
+++ b/recipes-bsp/multitech/mts-io/mts-io.init
@@ -80,7 +80,10 @@ HWNAME=""
HWLVL=""
-RST[0]="${sysdir}/wifi-bt-reset"
+# WIFIBTRESET is used later, so it must match
+# the index of the RST variable for wifi-bt-reset.
+WIFIBTRESET=0
+RST[${WIFIBTRESET}]="${sysdir}/wifi-bt-reset"
RST[1]="${sysdir}/mtq-reset"
RST[2]="${sysdir}/ap1/reset"
RST[3]="${sysdir}/ap1/creset"
@@ -355,6 +358,13 @@ case $1 in
/usr/bin/logger -t "mts-io" -p daemon.info -s "Resetting system modules"
read_card_info
/bin/busybox usleep $USLPTIME
+
+ # MTCDT-0.2 has issues with resetting RS9113 twice.
+ # RS9113 is reset in /etc/init.d/rs9113.
+ # Remove for MTRV1 reset as well, as it is redundant.
+ if [[ $hw_name == MTCDT ]] || [[ $hw_name == MTRV1 ]] ; then
+ RST[${WIFIBTRESET}]="/dev/null"
+ fi
reset_array
# use radio-reset init script for radio-reset
mfser_init