From 8299d0d6a603bbf66fa04c1db0bbf5d9ac3ac994 Mon Sep 17 00:00:00 2001 From: John Klug Date: Tue, 6 Feb 2018 11:19:37 -0600 Subject: Fix USB reset Telit Error -62 and Redpine wrong speed detection. --- recipes-bsp/multitech/mts-io/mts-io.init | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init index fd87c35..520a6d4 100644 --- a/recipes-bsp/multitech/mts-io/mts-io.init +++ b/recipes-bsp/multitech/mts-io/mts-io.init @@ -1,4 +1,4 @@ -#!/bin/bash +#!/oin/bash ### BEGIN INIT INFO # Provides: mts-io # Default-Start: S @@ -182,9 +182,6 @@ case $1 in fi /usr/bin/logger -t "mts-io" -p daemon.info -s "Resetting system modules" read_card_info - if ! reset_path $USBRST ; then - ((fail++)) - fi /bin/busybox usleep $USLPTIME reset_array [ -w /sys/devices/platform/mts-io/radio-reset ] && mts-io-sysfs store radio-reset 0 @@ -194,6 +191,11 @@ case $1 in fi waitpins + # Fix Telit error -62 and Redpine wrong USB speed detection on reset. + sleep 1 + if ! reset_path $USBRST ; then + ((fail++)) + fi if ((fail == 0)) ; then echo "OK" -- cgit v1.2.3