* [2.4.31] - USB device numbering in /proc/bus/usb @ 2005-08-23 13:14 Paul Rolland 2005-08-23 15:45 ` Sergey Vlasov 0 siblings, 1 reply; 4+ messages in thread From: Paul Rolland @ 2005-08-23 13:14 UTC (permalink / raw) To: linux-kernel; +Cc: rol Hello, I've just rebooted a machine, and the eagle ADSL modem I was using, presented as /proc/bus/usb/002/005 in now presented as /proc/bus/usb/002/003 (same bus, but device ID changed from 5 to 3). Is this an expected behavior, when running a 2.4.31 kernel ? I would have been expecting some more stability in the numbering across reboot, the same way IDE disks numbers are stable. Paul ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [2.4.31] - USB device numbering in /proc/bus/usb 2005-08-23 13:14 [2.4.31] - USB device numbering in /proc/bus/usb Paul Rolland @ 2005-08-23 15:45 ` Sergey Vlasov 2005-08-23 15:51 ` Paul Rolland 0 siblings, 1 reply; 4+ messages in thread From: Sergey Vlasov @ 2005-08-23 15:45 UTC (permalink / raw) To: Paul Rolland; +Cc: linux-kernel [-- Attachment #1: Type: text/plain, Size: 721 bytes --] On Tue, 23 Aug 2005 15:14:38 +0200 Paul Rolland wrote: > I've just rebooted a machine, and the eagle ADSL modem I was using, > presented as /proc/bus/usb/002/005 in now presented as > /proc/bus/usb/002/003 (same bus, but device ID changed from 5 to 3). > > Is this an expected behavior, when running a 2.4.31 kernel ? Yes. Addresses for USB devices are assigned dynamically. If you disconnect the modem from USB and connect it again, its address will change. > I would have been expecting some more stability in the numbering across > reboot, the same way IDE disks numbers are stable. Use some other identifier which is stable - e.g., serial number of the USB device (unfortunately, many devices don't have it). [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [2.4.31] - USB device numbering in /proc/bus/usb 2005-08-23 15:45 ` Sergey Vlasov @ 2005-08-23 15:51 ` Paul Rolland 2005-08-23 16:31 ` Alistair John Strachan 0 siblings, 1 reply; 4+ messages in thread From: Paul Rolland @ 2005-08-23 15:51 UTC (permalink / raw) To: 'Sergey Vlasov'; +Cc: linux-kernel Hello Sergey, > Yes. Addresses for USB devices are assigned dynamically. If you > disconnect the modem from USB and connect it again, its address will > change. The problem I've is that nothing changed on the machine except that I did a reboot. Nothing (USB device) added, nothing removed, so with a stable hardware config, USB numbering should have stayed stable, IMHO. > > I would have been expecting some more stability in the > numbering across > > reboot, the same way IDE disks numbers are stable. > > Use some other identifier which is stable - e.g., serial number of the > USB device (unfortunately, many devices don't have it). Well yes, I'm going to try to convert to some other identifiers space as this seems to be the only way to go. Thanks for the confirmation, Regards, Paul ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [2.4.31] - USB device numbering in /proc/bus/usb 2005-08-23 15:51 ` Paul Rolland @ 2005-08-23 16:31 ` Alistair John Strachan 0 siblings, 0 replies; 4+ messages in thread From: Alistair John Strachan @ 2005-08-23 16:31 UTC (permalink / raw) To: rol; +Cc: 'Sergey Vlasov', linux-kernel On Tuesday 23 August 2005 16:51, Paul Rolland wrote: > Hello Sergey, > > > Yes. Addresses for USB devices are assigned dynamically. If you > > disconnect the modem from USB and connect it again, its address will > > change. > > The problem I've is that nothing changed on the machine except that > I did a reboot. Nothing (USB device) added, nothing removed, so with > a stable hardware config, USB numbering should have stayed stable, IMHO. Basically, no it shouldn't. > > > > I would have been expecting some more stability in the > > > > numbering across > > > > > reboot, the same way IDE disks numbers are stable. > > > > Use some other identifier which is stable - e.g., serial number of the > > USB device (unfortunately, many devices don't have it). > > Well yes, I'm going to try to convert to some other identifiers space > as this seems to be the only way to go. > > Thanks for the confirmation, > Regards, > Paul /proc/bus/usb/devices (which tells you where a device is located in the tree). This should work on 2.4 kernels, 2.6 kernels should be using sysfs by now. -- Cheers, Alistair. 'No sense being pessimistic, it probably wouldn't work anyway.' Third year Computer Science undergraduate. 1F2 55 South Clerk Street, Edinburgh, UK. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-08-23 16:31 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-08-23 13:14 [2.4.31] - USB device numbering in /proc/bus/usb Paul Rolland 2005-08-23 15:45 ` Sergey Vlasov 2005-08-23 15:51 ` Paul Rolland 2005-08-23 16:31 ` Alistair John Strachan
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.