UPSTREAM: plugin-manager: increase probing timeouts

This will make device probing slower unconditionally, but it should
also ensure newer more complex devices that take longer to boot are
handled properly.

(cherry picked from commit c1fc816d0c4538f392e2864de48b03115279608c)

BUG=b:293540638
TEST=Manual test on a Dood device

Change-Id: I99e74f36308bb1209300a82008170b61b74a4570
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/modemmanager-next/+/4729043
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
Commit-Queue: Aleksander Morgado <aleksandermj@google.com>
Tested-by: Aleksander Morgado <aleksandermj@google.com>
diff --git a/src/mm-plugin-manager.c b/src/mm-plugin-manager.c
index 7212729..c243866 100644
--- a/src/mm-plugin-manager.c
+++ b/src/mm-plugin-manager.c
@@ -717,20 +717,20 @@
 /* Device context */
 
 /* Time to wait for ports to appear before starting to probe the first one */
-#define MIN_WAIT_TIME_MSECS 1500
+#define MIN_WAIT_TIME_MSECS 2000
 
 /* Time to wait for other ports to appear once the first port is exposed
  * (needs to be > MIN_WAIT_TIME_MSECS!!) */
-#define MIN_PROBING_TIME_MSECS 2500
+#define MIN_PROBING_TIME_MSECS 4000
 
 /* Additional time to wait for other ports to appear after the last port is
  * exposed in the system. Longer time when not using udev, as we rely on
  * mmcli --report-kernel-event events to report new port additions, e.g.
  * via openwrt hotplug scripts. */
 #if defined WITH_UDEV
-# define EXTRA_PROBING_TIME_MSECS 1500
+# define EXTRA_PROBING_TIME_MSECS 2000
 #else
-# define EXTRA_PROBING_TIME_MSECS 3000
+# define EXTRA_PROBING_TIME_MSECS 4000
 #endif
 
 /* The wait time we define must always be less than the probing time */