From: Greg KH <greg@kroah.com>
To: Anil Nair <anilcoll90@gmail.com>
Cc: Wang YanQing <Udknight@gmail.com>,
lkml <linux-kernel@vger.kernel.org>,
linux-usb@vger.kernel.org
Subject: Re: [RFC]Is usb port number fixed?
Date: Fri, 20 Apr 2012 09:19:55 -0700 [thread overview]
Message-ID: <20120420161955.GA7090@kroah.com> (raw)
In-Reply-To: <CAHkwNT=VW8qF-7QRxpiaWkmQm0UFdsbahFLhT-PCc4OMnVs1Gg@mail.gmail.com>
<Please don't post HTML email, the mailing lists reject your messages
that way>
On Fri, Apr 20, 2012 at 09:39:37PM +0530, Anil Nair wrote:
>
>
> >USB ports on a hub are all enumerated the same, but the root hubs
> >aren't, and sometimes hubs on the same bus are not as well.
>
>
> Does every device assigned a port number serially, that is in increasing
> order?
Yes.
> If a USB port number is assigned to a USB device then are other USB devices
> able to use it,
> if connected USB device is Disconnected?
It can, why? USB devices don't care about their device number.
> >But usually, things do come up in the same way all the time, so
> >depending on your use case, you can rely on this, but it is recommended
> >that you look for something else a bit more unique, like a serial number
> >on a device (if it is present), if you wish to uniquely identify a
> >device all the time.
>
>
> Does the Linux Kernel keeps the history of connected devices? So that next
> time, the same USB device get assigned the same USB port number.
No. I think you are confusing port number with the USB device number,
both of which mean nothing to a USB device at all, and they shouldn't to
anyone else.
greg k-h
next prev parent reply other threads:[~2012-04-20 16:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-20 9:25 [RFC]Is usb port number fixed? Wang YanQing
2012-04-20 9:37 ` Wang YanQing
2012-04-20 15:37 ` Greg KH
[not found] ` <CAHkwNT=VW8qF-7QRxpiaWkmQm0UFdsbahFLhT-PCc4OMnVs1Gg@mail.gmail.com>
2012-04-20 16:19 ` Greg KH [this message]
2012-04-21 0:32 ` Alan Stern
2012-04-21 5:56 ` Wang YanQing
2012-04-21 17:23 ` Alan Stern
[not found] <CAHkwNT=DTjdhZmEg+SFGOVi+ZcS-NpHWH8Hh3XV+-BPzHRC7NA@mail.gmail.com>
2012-04-22 12:47 ` Alan Stern
2012-04-23 1:52 ` Wang YanQing
2012-04-23 15:13 ` Alan Stern
2012-04-24 2:16 ` Wang YanQing
2012-04-24 14:14 ` Alan Stern
2012-04-24 15:58 ` Wang YanQing
2012-04-24 14:22 ` anil
2012-04-24 2:24 ` Wang YanQing
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=20120420161955.GA7090@kroah.com \
--to=greg@kroah.com \
--cc=Udknight@gmail.com \
--cc=anilcoll90@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@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