On 7/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Can I use this patch to generate stable USB mouse/keyboard names based
> > on port numbers? Like always map 2-2.3:1.0 to mouse0, 4-1:1.0 to
> > mouse1, etc..
> 
> The issue is how stable the USB bus numbering is ... basically, if
> you add new host controllers or change the modprobe or link orders,
> those can change.  Otherwise the numbers will be stable until you
> re-wire things.

It should be possible to eliminate the instability from modprobe/link.
The number of base controllers of each type is known. We could just
make a rule that they are always numbered in a consistent manner. Then
if you have 2 echi and 4 uhci and only load the uhci driver the buses
would be numbered 2,3,4,5 instead of 0,1,2,3. Later loading the echi
driver would give you buses 0,1.

Another idea would be to use something like udev to take the PCI
device number of the root controller and assign it a stable bus
number. This would be even better since plugging in a USB controller
wouldn't change existing numbering.

> 
> See in <linux/usb.h> the usb_make_path() description, which has
> been with us since about 2.3.something specifically to provide names
> that are stable enough to be worth saving in system config files.
> The numbers you see in sysfs are similar; you could morph the sysfs
> names into that style.
> 
> - Dave
> 
> 


-- 
Jon Smirl
[EMAIL PROTECTED]


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to