Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 157063

Summary: kernel doesn't export "index" information for USB serial devices
Product: Red Hat Enterprise Linux 4 Reporter: Bastien Nocera <bnocera>
Component: kernelAssignee: Pete Zaitcev <zaitcev>
Status: CLOSED WONTFIX QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: davej, davidz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 13:23:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Bastien Nocera 2005-05-06 15:51:57 UTC
This USB device (a Palm) has 2 serial interfaces. Only one of them is to be used
for data connection to the desktop. Right now, it's not possible, other than
through hackery on the device name, to distinguish which is which.

$ udevinfo -a -p `udevinfo -q path -n /dev/pilot0` > /tmp/pilot0
$ udevinfo -a -p `udevinfo -q path -n /dev/pilot1` > /tmp/pilot1
$ diff -u /tmp/pilot0 /tmp/pilot1
--- /tmp/pilot0 2005-05-06 16:31:15.946538800 +0100
+++ /tmp/pilot1 2005-05-06 16:31:19.326989050 +0100
@@ -5,13 +5,13 @@
 Only attributes within one device section may be used together in one rule,
 to match the device for which the node will be created.

-  looking at class device '/sys/class/tty/ttyUSB0':
-    SYSFS{dev}="188:0"
+  looking at class device '/sys/class/tty/ttyUSB1':
+    SYSFS{dev}="188:1"

 follow the class device's "device"
-  looking at the device chain at
'/sys/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0/ttyUSB0':
+  looking at the device chain at
'/sys/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0/ttyUSB1':
     BUS="usb-serial"
-    ID="ttyUSB0"
+    ID="ttyUSB1"
     SYSFS{detach_state}="0"

   looking at the device chain at
'/sys/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0':

Only differences are the ID of the USB connection, the minor number of the
device, and the different device name.

Comment 1 Pete Zaitcev 2005-05-06 17:17:41 UTC
I don't think RHEL should take leadership in defining these sorts of
interfaces. It's something Fedora should do. However, if you have
a concrete proposal, and it you have a buy-in from gpilot or evolution folks,
I'm all ears. I can help to push this to Greg Kroah and thus to Linus.
Please educate me here; links to mailing list archives would be helpful.


Comment 2 Bastien Nocera 2005-05-09 10:36:52 UTC
I can't yet get buy-in from the Evo/gnome-pilot folks, as there's no code there
to detect the Palms. The buy-in (David?) would probably first be from HAL, where
interested applications can get the information about the index. After that,
it's quite simple to have a property saying "This is the data port to use".

The main problem is that HAL can't know about that, because the kernel doesn't
export this property. Something like an INDEX property would be good enough.

Comment 3 Jiri Pallich 2012-06-20 13:23:04 UTC
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. 
Please See https://access.redhat.com/support/policy/updates/errata/

If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.