Revert "modemmanager: add more retries for port AT probing"

Adding more retries to the port AT probing has an impact in modems not
using serial drivers (for example using qmi, mbim). It takes longer for
MM to detect those modems and then user space gives up waiting for the
modems to be available.

This reverts commit 682d77e414.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2017-04-27 18:07:05 +02:00
parent 45f84286a3
commit 7554f05b5f
2 changed files with 0 additions and 30 deletions

View File

@ -1,29 +0,0 @@
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,7 +15,6 @@ PV = "1.7.0+git${SRCPV}"
SRC_URI = " \
git://anongit.freedesktop.org/git/ModemManager/ModemManager.git;protocol=https \
file://0001-configure.ac-add-foreign-automake-option.patch \
file://0002-port-probe-add-more-retries-for-port-AT-probing.patch \
file://0003-port-serial-add-B230400-and-B921600-missing-baudrate.patch \
"
SRCREV = "d09bc8baaa9fe93a72bb715530b1403a7a81c891"