modemmanager: add more retries for port AT probing

Launching the MM on target's boot fails to detect the XBee cellular
because this needs more time to complete the initialization. So add some
more retries for the AT port probing to allow the XBee cellular to be
detected.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2017-04-19 16:28:07 +02:00
parent 68df122989
commit 682d77e414
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,29 @@
From: Javier Viguera <javier.viguera@digi.com>
Date: Wed, 19 Apr 2017 14:04:51 +0200
Subject: [PATCH] port-probe: add more retries for port AT probing
Launching the MM on target's boot fails to detect the XBee cellular
because this needs more time to complete the initialization. So add some
more retries for the AT port probing to allow the XBee cellular to be
detected.
Upstream-Status: Inappropriate [embedded specific (Xbee cellular)]
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
---
src/mm-port-probe.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c
index cfe0763cfc3d..18cf53dd6b1d 100644
--- a/src/mm-port-probe.c
+++ b/src/mm-port-probe.c
@@ -1006,6 +1006,8 @@ static const MMPortProbeAtCommand at_probing[] = {
{ "AT", 3, mm_port_probe_response_processor_is_at },
{ "AT", 3, mm_port_probe_response_processor_is_at },
{ "AT", 3, mm_port_probe_response_processor_is_at },
+ { "AT", 15, mm_port_probe_response_processor_is_at },
+ { "AT", 20, mm_port_probe_response_processor_is_at },
{ NULL }
};

View File

@ -15,6 +15,7 @@ PV = "1.7.0+git${SRCPV}"
SRC_URI = " \ SRC_URI = " \
git://anongit.freedesktop.org/git/ModemManager/ModemManager.git;protocol=https \ git://anongit.freedesktop.org/git/ModemManager/ModemManager.git;protocol=https \
file://0001-configure.ac-add-foreign-automake-option.patch \ file://0001-configure.ac-add-foreign-automake-option.patch \
file://0002-port-probe-add-more-retries-for-port-AT-probing.patch \
" "
SRCREV = "d09bc8baaa9fe93a72bb715530b1403a7a81c891" SRCREV = "d09bc8baaa9fe93a72bb715530b1403a7a81c891"