Bug 824028 - repeated hot plug of usb gps assigns incremental numbers
repeated hot plug of usb gps assigns incremental numbers
Product: Fedora
Classification: Fedora
Component: udev (Show other bugs)
x86_64 Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: udev-maint
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-05-22 11:27 EDT by Patrick Stanistreet
Modified: 2012-05-22 12:04 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-05-22 11:51:10 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Patrick Stanistreet 2012-05-22 11:27:49 EDT
Description of problem:
I plug usb gps into fc17 with all updates - previously
always assigned  /dev/ttyUSB0   now I get /dev/ttyUSB1 ,2

Version-Release number of selected component (if applicable):

How reproducible:
disconnect usb gps then reconnect - check /var/logs/messages
to see the device being assigned.

Steps to Reproduce:
Actual results:

Expected results:
alway assign  /dev/ttyUSB0  to the gps at connect time

Additional info:

it seems this change occurred very recently but not sure exactly when
it happened as the first connection does assign /dev/ttyUSB0
and gps applications will work.  After that though unplugging
the gps and then plugging it back in get the wrong device id.
/dev/ttyUSB1  and so on.
Comment 1 Patrick Stanistreet 2012-05-22 11:51:10 EDT
ok further testing today and navit is working so
I give up there is definitely something odd
but I cannot figure it out at the moment.
Comment 2 Kay Sievers 2012-05-22 12:04:05 EDT
That's all expected behavior. Kernel names are not predictable. On disconnect
while the device is till in use the kernel device is busy, the reconnect will
get the next free number, all usual and expected behaviour.

You might want to use the /dev/serial/by-* links instead of the kernel names,
they are predictable.

Note You need to log in before you can comment on or make changes to this bug.