From 682d77e414981e17bbebd9e4476e498c6aa8becd Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Wed, 19 Apr 2017 16:28:07 +0200 Subject: [PATCH] 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 --- ...add-more-retries-for-port-AT-probing.patch | 29 +++++++++++++++++++ .../modemmanager/modemmanager_git.bb | 1 + 2 files changed, 30 insertions(+) create mode 100644 meta-digi-dey/recipes-connectivity/modemmanager/modemmanager/0002-port-probe-add-more-retries-for-port-AT-probing.patch diff --git a/meta-digi-dey/recipes-connectivity/modemmanager/modemmanager/0002-port-probe-add-more-retries-for-port-AT-probing.patch b/meta-digi-dey/recipes-connectivity/modemmanager/modemmanager/0002-port-probe-add-more-retries-for-port-AT-probing.patch new file mode 100644 index 000000000..e3919915a --- /dev/null +++ b/meta-digi-dey/recipes-connectivity/modemmanager/modemmanager/0002-port-probe-add-more-retries-for-port-AT-probing.patch @@ -0,0 +1,29 @@ +From: Javier Viguera +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 +--- + 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 } + }; + diff --git a/meta-digi-dey/recipes-connectivity/modemmanager/modemmanager_git.bb b/meta-digi-dey/recipes-connectivity/modemmanager/modemmanager_git.bb index e6cb3a16b..65450718a 100644 --- a/meta-digi-dey/recipes-connectivity/modemmanager/modemmanager_git.bb +++ b/meta-digi-dey/recipes-connectivity/modemmanager/modemmanager_git.bb @@ -15,6 +15,7 @@ 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 \ " SRCREV = "d09bc8baaa9fe93a72bb715530b1403a7a81c891"