Subject: kern/7552: USB doesn't reuse device numbers
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mcn@engarde.com>
List: netbsd-bugs
Date: 05/11/1999 11:05:50
>Number:         7552
>Category:       kern
>Synopsis:       USB doesn't reuse device numbers
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue May 11 11:05:01 1999
>Last-Modified:
>Originator:     Mike Neuman
>Organization:
>Release:        1.4
>Environment:
1.4 i386
>Description:
I'm not sure if this is a bug or a change request. If you plug in a USB mouse, unplug it, then plug it back in, it gets assigned a new device ID. For example (I've left out irrelevant lines):

ums0 at uhub0 port 1 configuration 1 interface 0
wsmouse1 at ums0
ums0: at uhub0 port 1 (addr 2) disconnected
ums1 at uhub0 port 1 configuration 1 interface 0
wsmouse2 at ums1

  Since ums0 is no longer connected (as is wsmouse1) it would be nice if those device numbers are reused. Xfree86 has to be configured with every possible input device. If I accidentally unplug the mouse, or have to uplug it to move the system, I have to quit X, and edit the config file, or reboot.
>How-To-Repeat:

See description.
>Fix:


>Audit-Trail:
>Unformatted: