From: Greg KH <greg@wirex.com>
To: Keith Owens <kaos@ocs.com.au>, "Dunlap, Randy" <randy.dunlap@intel.com>
Cc: "'Hunt Kent'" <kenthunt@yahoo.com>,
"'lmcclef@lmc.ericsson.se'" <lmcclef@lmc.ericsson.se>,
"'f5ibh@db0bm.ampr.org'" <f5ibh@db0bm.ampr.org>,
"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: test[9-10] USB depmod unresolved symbols
Date: Fri, 27 Oct 2000 20:57:03 -0700 [thread overview]
Message-ID: <20001027205703.A17904@wirex.com> (raw)
In-Reply-To: <D5E932F578EBD111AC3F00A0C96B1E6F07DBDB99@orsmsx31.jf.intel.com> <4565.972696579@ocs3.ocs-net>
In-Reply-To: <4565.972696579@ocs3.ocs-net>; from kaos@ocs.com.au on Sat, Oct 28, 2000 at 12:29:39PM +1100
[-- Attachment #1: Type: text/plain, Size: 1656 bytes --]
Thanks Keith for that detailed description of what is going wrong, I
would have never figured that out.
On Sat, Oct 28, 2000 at 12:29:39PM +1100, Keith Owens wrote:
>
> I will add LINK_FIRST and LINK_LAST to kbuild this weekend and
> reinstate the missing lines in drivers/usb/Makefile. What I need from
> the USB group is a documented (i.e. *why* is this order required)
> definition of what needs to be linked first into usbdrv.o, and somebody
> we can query if there are problems in the future. It will probably be
> as simple as
Yeah, a valid reason for LINK_FIRST and LINK_LAST!
I'll try my hand at the wording. Randy, does this look acceptable:
# usb.o contains __init usb_init which must be executed before all
# other usb __init routines, the remaining usb __init routines can be
# executed in any order. Execution order of __init routines depends
# on link order so usb.o must be linked first. Otherwise, the
# individual drivers will be initialized before the hub driver is,
# causing the hub driver initialization sequence to needlessly probe
# every USB driver with the root hub device. This causes a lot of
# unnecessary system log messages, a lot of user confusion, and has
# been known to cause a incorrectly programmed USB device driver to
# grab the root hub device improperly.
# Greg Kroah-Hartman, 27 Oct 2000
LINK_FIRST := usb.o
> but you know better than I what the required order will be and why.
> Are there any other link order problems in USB?
That's the only known link problem for the USB drivers.
Thanks,
greg k-h
--
greg@(kroah|wirex).com
http://immunix.org/~greg
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next prev parent reply other threads:[~2000-10-28 3:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-27 19:55 test[9-10] USB depmod unresolved symbols Dunlap, Randy
2000-10-28 1:29 ` Keith Owens
2000-10-28 3:57 ` Greg KH [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-10-27 2:35 Hunt Kent
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=20001027205703.A17904@wirex.com \
--to=greg@wirex.com \
--cc=f5ibh@db0bm.ampr.org \
--cc=kaos@ocs.com.au \
--cc=kenthunt@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lmcclef@lmc.ericsson.se \
--cc=randy.dunlap@intel.com \
/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