From c1fc816d0c4538f392e2864de48b03115279608c Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 28 Jul 2023 08:51:46 +0000 Subject: 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. --- src/mm-plugin-manager.c | 8 ++++---- 1 file 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 */ -- cgit v1.2.3-70-g09d2