Re: USB device just moves
- From: phil-news-nospam@xxxxxxxx
- Date: 14 Feb 2008 17:38:28 GMT
On Thu, 14 Feb 2008 05:22:55 GMT Tim Roberts <timr@xxxxxxxxx> wrote:
| phil-news-nospam@xxxxxxxx wrote:
|>
|>So tell me how it is that "udev" can do better than the kernel itself to
|>make sure that when the USB device is re-attached that it will always get
|>exactly the same major/minor device number? I thought that what "udev"
|>did was automatically make a device node in the name space to refer to
|>the new major/minor. Remember, this involves an already mounted filesystem
|>with files still open.
|
| Well, perhaps I misunderstood (or underestimated) the issue. Your
| description of udev is correct. If the major/minor number is critical,
| than perhaps udev doesn't help.
Would it not be critical if that major/minor is a block device that is
currently mounted?
|>The real culprit in this is the poor design of USB, which follows the poor
|>design of PC. There should be a hardware layer consistency of addresses
|>based on where something is plugged in (bus number, controller number, port
|>number, hub port number, hubbed hub port number, etc). Then on top of that
|>there should be consistent device ID numbers much like ethernet MAC (but at
|>least 64 bits). If the same device is plugged back into the same port, no
|>address should change. Nothing should need to be run to "change it back"
|>as it should just _be_ the same.
|
| There's nothing wrong with the design of USB. As long as the device has a
| serial number, the combination of VID, PID, and serial number is unique,
| and Windows (at least) will recognize it as the same device no matter what
| port of which hub it is plugged into.
So are you saying the Linux USB driver design is all wrong?
If I had designed these things, I would have started at the computer bus
level and made as many things as possible message based, with the only
polling to be as a result of a timeout (expected a message but none has
arrived, so ask in case it sent it and somehow it was lost, much like
TCP does).
People whose first experience in computer architecture is the PC are doomed
to create bad designs, unless they learn from the beginning that the PC is
a terrible architecture.
The bad design of USB extends all the way to a PoS connector, too.
--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2008-02-14-1133@xxxxxxxx |
|------------------------------------/-------------------------------------|
.
- Follow-Ups:
- Re: USB device just moves
- From: Tim Roberts
- Re: USB device just moves
- References:
- USB device just moves
- From: phil-news-nospam
- Re: USB device just moves
- From: Tim Roberts
- Re: USB device just moves
- From: phil-news-nospam
- Re: USB device just moves
- From: Tim Roberts
- USB device just moves
- Prev by Date: Re: How to determine if running on a 32 or 64 bits kernel ?
- Next by Date: Re: How to determine if running on a 32 or 64 bits kernel ?
- Previous by thread: Re: USB device just moves
- Next by thread: Re: USB device just moves
- Index(es):
Relevant Pages
|