From ca4c69e078b0e24a52dde3780977a5631721f134 Mon Sep 17 00:00:00 2001 From: Mykyta Dorokhin Date: Thu, 20 Oct 2016 13:01:45 +0300 Subject: mtp: execute eth-reset on boot to reset eth phy --- recipes-bsp/multitech/mts-io/mts-io.mtp.init | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/recipes-bsp/multitech/mts-io/mts-io.mtp.init b/recipes-bsp/multitech/mts-io/mts-io.mtp.init index f247a9b..3ce08a9 100644 --- a/recipes-bsp/multitech/mts-io/mts-io.mtp.init +++ b/recipes-bsp/multitech/mts-io/mts-io.mtp.init @@ -5,6 +5,11 @@ lora_init() { mts-io-sysfs store lora-reset 0 } +eth_init() { + # reset eth phy + mts-io-sysfs store eth-reset 0 +} + cell_init() { # remove /dev/modem_at[0,1] symlinks rm -f /dev/modem_at[0,1] @@ -16,17 +21,12 @@ cell_init() { mts-io-sysfs store radio-power 1 } -eth_init() { - mts-io-sysfs store eth-enabled 0 - mts-io-sysfs store eth-enabled 1 -} - case $1 in start) echo "Loading mts-io module" modprobe mts_io - eth_init lora_init + eth_init cell_init & ;; -- cgit v1.2.3