aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksandermj@chromium.org>2023-07-28 08:51:46 +0000
committerAleksander Morgado <aleksandermj@chromium.org>2023-07-28 08:57:22 +0000
commitc1fc816d0c4538f392e2864de48b03115279608c (patch)
tree33af962c0c5bfabb83a7b7ec2b796487941c2c37
parentdf61559511b177bd5cd82ceafca6e3e7eb3708ad (diff)
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.
-rw-r--r--src/mm-plugin-manager.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mm-plugin-manager.c b/src/mm-plugin-manager.c
index 72127296..c2438664 100644
--- a/src/mm-plugin-manager.c
+++ b/src/mm-plugin-manager.c
@@ -717,20 +717,20 @@ port_context_new (MMPluginManager *self,
/* 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 */