port: store parent sysfs path in each MMPort

This commit is contained in:
Aleksander Morgado
2014-06-22 17:29:50 +02:00
parent 7752c9920d
commit 7c347aa3ec
20 changed files with 75 additions and 18 deletions

View File

@@ -909,6 +909,7 @@ mm_plugin_create_modem (MMPlugin *self,
grabbed = mm_base_modem_grab_port (modem,
mm_port_probe_get_port_subsys (probe),
mm_port_probe_get_port_name (probe),
mm_port_probe_get_parent_path (probe),
mm_port_probe_get_port_type (probe),
MM_PORT_SERIAL_AT_FLAG_NONE,
&inner_error);
@@ -929,6 +930,7 @@ mm_plugin_create_modem (MMPlugin *self,
if (!mm_base_modem_grab_port (modem,
"virtual",
virtual_ports[i],
NULL,
MM_PORT_TYPE_AT,
MM_PORT_SERIAL_AT_FLAG_NONE,
&inner_error)) {