From: Razvan Gavril <razvan.g@plutohome.com>
To: linux-kernel@vger.kernel.org
Subject: USB & Sysfs Question ( posible issue )
Date: Mon, 26 Jun 2006 18:52:35 +0300 [thread overview]
Message-ID: <44A002C3.9000807@plutohome.com> (raw)
If i had a usb-serial device in linux, i can/could find a symlink in
/sys/bus/usb-serial/devices named ttyUSBX that is/was pointing to
another sysfs directory, which is in /sys/device. The directory in the
/device looked something like this :
/devices/pci0000:00/0000:00:02.0/usb1/1-3/1-3:1.0/ttyUSBX . As far i
could figure out the '... usb1/1-3/...' part from the path means that
the device is connected to the port 3 of the 1st usb controler.
I used this for a long of time to uniquely identify phisical usb ports
from a computer, when upgrading to 2.6.17, something strange started to
happen: even if i didn't remove the usb device from a specified port of
a the computer, sometimes when rebooting the usb controlers changed
their numbers in sysfs. A device that was before the reboot
'...usb1/1-3/...' can be now ' ...usb2/2-3...' or '...usb4/4-3...'.
The main idea is that an usb port can't no loger be identified only by
looking on it's sysfs path. Is this a normal behavior ? I'm asking this
as i didn't get this numbering change when using older 2.6 kernel.
Thanks
--
Razvan Gavril
next reply other threads:[~2006-06-26 15:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-26 15:52 Razvan Gavril [this message]
2006-06-27 6:28 ` USB & Sysfs Question ( posible issue ) Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44A002C3.9000807@plutohome.com \
--to=razvan.g@plutohome.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox