Re: [PATCH] io_ti: export the port number in sysfs

Greg KH <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Fri, Aug 17, 2007 at 10:40:33PM +0400, Roman Kagan wrote:
> Some of the Edgeport usb-serial converters have more than one (read two)
> serial ports on the same USB device.
> 
> Currently the only way to distinguish them 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 <[email protected]>
> Signed-off-by: Dmitry Guryanov <[email protected]>

I agree with Oliver, you should do this for all usb-serial drivers.
Care to change this patch to do that?  It should just involve moving
this information into the usb-serial driver itself.

thanks,

greg k-h

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.