MMKernelDevice ID_USB_INTERFACE_NUM property isn't set anymore

Carlo Lobrano c.lobrano at gmail.com
Wed May 3 10:10:42 UTC 2017


> I answered in IRC already the other day, I see you didn't get my reply :)

yeah, I'm sorry :)

> When using the "udev" backend, which you are, the property isn't
> "loaded" or "stored" anywhere in our code. We directly look for the
> property in the GUdevDevice underneath.
>
> Could you run udevadm info in the port to see if ID_USB_INTERFACE_NUM is
set?

Oh, I see now.
The property is actually unset. Is there anything else I can do to have
this information?

$ udevadm info /dev/ttyACM0
P:
/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.2/3-3.2.4/3-3.2.4.3/3-3.2.4.3:1.0/tty/ttyACM0
N: ttyACM0
E: DEVNAME=/dev/ttyACM0
E:
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.2/3-3.2.4/3-3.2.4.3/3-3.2.4.3:1.0/tty/ttyACM0
E: ID_MM_CANDIDATE=1
E: ID_MM_TELIT_PORTS_TAGGED=1
E: ID_MM_TELIT_TAGGED=1
E: MAJOR=166
E: MINOR=0
E: SUBSYSTEM=tty
E: TAGS=:systemd:
E: USEC_INITIALIZED=75726372964

On 2 May 2017 at 18:04, Aleksander Morgado <aleksander at aleksander.es> wrote:

> On Tue, May 2, 2017 at 4:49 PM, Carlo Lobrano <c.lobrano at gmail.com> wrote:
> >
> > first of all, I've already asked this question on IRC, but then I had to
> > disconnect and I have no bouncer configured, so my apologize if someone
> has
> > already answered.
> >
> > I'm working on telit plugin port configuration (telit_custom_init_step
> to be
> > precise) and it seems that MMKernelDevice ID_USB_INTERFACE_NUM property
> is
> > never set.
> >
> > Tracking back this property, the only point where it's set is
> > preload_interface_number called from preload_contents, but then I got
> lost
> > and not sure where to check
> >
> > I would appreciate any ideas
>
> I answered in IRC already the other day, I see you didn't get my reply :)
>
> When using the "udev" backend, which you are, the property isn't
> "loaded" or "stored" anywhere in our code. We directly look for the
> property in the GUdevDevice underneath.
>
> Could you run udevadm info in the port to see if ID_USB_INTERFACE_NUM is
> set?
>
> --
> Aleksander
> https://aleksander.es
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20170503/abcb3589/attachment-0001.html>


More information about the ModemManager-devel mailing list