From: Roman Kagan Date: Fri, 24 Aug 2007 16:22:52 +0000 (+0400) Subject: usb-serial: show port number in sysfs X-Git-Tag: v2.6.24-rc1~1395^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce0d9325b19555f05b08cbb1ea4c2393eec188ec;p=pandora-kernel.git 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: Roman Kagan Signed-off-by: Dmitry Guryanov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed