summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2021-11-03 12:40:46 -0500
committerJohn Klug <john.klug@multitech.com>2021-12-29 08:07:46 -0600
commitf3fa40d05b0ea29131f25fbecda6fd755f69cfe7 (patch)
tree2bac7145977106d878ff55acb168a3a82bd22163
parent5b794bd501f638fa5ec0e5c87977acf2cef82669 (diff)
downloadmeta-multitech-f3fa40d05b0ea29131f25fbecda6fd755f69cfe7.tar.gz
meta-multitech-f3fa40d05b0ea29131f25fbecda6fd755f69cfe7.tar.bz2
meta-multitech-f3fa40d05b0ea29131f25fbecda6fd755f69cfe7.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 f84cc3e..626a254 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"
@@ -362,6 +365,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