Skip to content
Commit ce0d9325 authored by Roman Kagan's avatar Roman Kagan Committed by Greg Kroah-Hartman
Browse files

usb-serial: show port number in sysfs



Some usb-serial devices (e.g. certain Edgeport models) have more than
one serial port on the same USB device/interface.

Currently the only way to distinguish these ports in userspace is by
their minor device number: the driver makes them consecutive and in
stable order.

However, for the purpose of stable naming with udev this is
insufficient: when udev handles the ADD event for one of the ports it
doesn't know what minor number the other one has.

To make stable naming easier, export the port number via sysfs.

Signed-off-by: default avatarRoman Kagan <rkagan@sw.ru>
Signed-off-by: default avatarDmitry Guryanov <dimak@dgap.mipt.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fdf99c9e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment