aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mm-port-probe.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c
index 0b4d227b..f5dc90d2 100644
--- a/src/mm-port-probe.c
+++ b/src/mm-port-probe.c
@@ -1351,6 +1351,15 @@ mm_port_probe_run (MMPortProbe *self,
/* The context will be owned by the task */
g_task_set_task_data (self->priv->task, ctx, (GDestroyNotify) port_probe_run_context_free);
+ /* If we're told to completely ignore the port, don't do any probing */
+ if (self->priv->is_ignored) {
+ mm_dbg ("(%s/%s) port probing finished: skipping for blacklisted port",
+ mm_kernel_device_get_subsystem (self->priv->port),
+ mm_kernel_device_get_name (self->priv->port));
+ port_probe_task_return_boolean (self, TRUE);
+ return;
+ }
+
/* Check if we already have the requested probing results.
* We will fix here the 'ctx->flags' so that we only request probing
* for the missing things. */