summaryrefslogtreecommitdiff
path: root/recipes-bsp
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2022-02-18 18:34:12 -0600
committerJohn Klug <john.klug@multitech.com>2022-02-18 18:34:12 -0600
commit059712b8c72b116f054d1cb0a4439f534ca74d5c (patch)
treeb3d4f35be783f5081b77f430ccd462dbc443e9dc /recipes-bsp
parentd81cd86a617bbb768d2eaea7375b2c2cb010fb6c (diff)
downloadmeta-multitech-059712b8c72b116f054d1cb0a4439f534ca74d5c.tar.gz
meta-multitech-059712b8c72b116f054d1cb0a4439f534ca74d5c.tar.bz2
meta-multitech-059712b8c72b116f054d1cb0a4439f534ca74d5c.zip
Prevent waiting for the supercap when the EEPROM is not written
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/multitech/mts-io/mts-io.mtcap.init4
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init
index f8e611f..7b444a1 100644
--- a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init
+++ b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init
@@ -107,6 +107,10 @@ gettime() {
echo ${BASH_REMATCH[1]}
}
wait_for_supercap() {
+ if ! [[ -f ${sysdir}/capability/supercap ]] ; then
+ # Driver not loaded, maybe EEPROM not set
+ return
+ fi
supercap=$(mts-io-sysfs show capability/supercap 2>/dev/null)
if ((supercap != 1)) ; then
return