[PATCH 1/5] core: allow identifying devices by a user-provided 'uid'

Dan Williams dcbw at redhat.com
Fri Sep 30 03:21:08 UTC 2016


On Thu, 2016-09-29 at 15:38 +0200, Aleksander Morgado wrote:
> All ports of the same modem reported by the kernel will all be
> associated with
> a common 'uid' (unique id), which uniquely identifies the physical
> device. This
> logic was already in place, what we do now is avoid calling it  the
> 'sysfs
> path' of the physical device, because we may not want to use that to
> identify
> a device.
> 
> This logic now also enables the possibility of "naming" the modems in
> a unique
> way by setting the "ID_MM_PHYSDEV_UID" property in the "usb_device"
> that owns
> all the ports.
> 
> E.g. a custom device has 4 modems in 4 different USB ports. The
> device path of
> each USB device will always be the same, so the naming rules could go
> like this:

Patch LGTM.

Dan


More information about the ModemManager-devel mailing list