Re: Patch to ModemManager to handle ports that have pnp-device as its parent.
- From: Dan Williams <dcbw redhat com>
- To: Dmitry Ivanyushin <defance gmail com>
- Cc: networkmanager-list gnome org
- Subject: Re: Patch to ModemManager to handle ports that have pnp-device as its parent.
- Date: Fri, 07 Jun 2013 16:26:59 -0500
On Fri, 2013-06-07 at 16:21 +0400, Dmitry Ivanyushin wrote:
I have a modem that is connected to motherboard's built-in serial port. Its
parent is listed in udev as "pnp" so this patch handles that situation.
Pushed, thanks!
dan
diff --git a/src/mm-manager.c b/src/mm-manager.c
index dca384e..447285b 100644
--- a/src/mm-manager.c
+++ b/src/mm-manager.c
@@ -159,7 +159,7 @@ find_physical_device (GUdevDevice *child)
GUdevDevice *physdev = NULL;
const char *subsys, *type;
guint32 i = 0;
- gboolean is_usb = FALSE, is_pci = FALSE, is_pcmcia = FALSE,
is_platform = FALSE;
+ gboolean is_usb = FALSE, is_pci = FALSE, is_pcmcia = FALSE,
is_platform = FALSE, is_pnp = FALSE;
g_return_val_if_fail (child != NULL, NULL);
@@ -203,6 +203,10 @@ find_physical_device (GUdevDevice *child)
is_pci = TRUE;
physdev = iter;
break;
+ } else if (is_pnp || !strcmp(subsys, "pnp")) {
+ is_pnp = TRUE;
+ physdev = iter;
+ break;
}
}
_______________________________________________
networkmanager-list mailing list
networkmanager-list gnome org
https://mail.gnome.org/mailman/listinfo/networkmanager-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]