From: Greg KH <greg@kroah.com>
To: Stephen Cameron <steve.cameron@hp.com>
Cc: linux-kernel@vger.kernel.org, michael.ni@hp.com, torben.mathiasen@hp.com
Subject: Re: PCI hotplug w/ drivers linked statically vs. module
Date: Mon, 10 Mar 2003 09:50:44 -0800 [thread overview]
Message-ID: <20030310175044.GB9792@kroah.com> (raw)
In-Reply-To: <20030307032740.GA5236@zuul.cca.cpqcorp.net>
On Fri, Mar 07, 2003 at 09:27:40AM +0600, Stephen Cameron wrote:
>
> I noticed a difference in behavior with PCI hotplug, depending
> on if the driver in questino is loaded as a module, or statically
> linked.
>
> For example, the tg3 driver, hot-unplugging, then hot-replugging
> works seemingly well if the driver is a module, but differnetly (poorly?)
> if it is statically linked. (eth0 disappears and does not come
> back.)
Is the tg3 driver's remove() function actually being called? In looking
at the driver, the callback is declared properly, so it should be
present when building the driver into the kernel.
> So why the difference in behavior with PCI hotplug and drivers
> linked statically vs. as a module?
I have no idea right now, sorry.
Only thing I can think of is you have to mark the remove function as
"__devexit" and not "__exit" to make sure the function is really there
if CONFIG_HOTPLUG is enabled.
thanks,
greg k-h
next prev parent reply other threads:[~2003-03-10 17:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-07 3:27 Stephen Cameron
2003-03-10 17:50 ` Greg KH [this message]
2003-03-07 15:29 Cameron, Steve
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=20030310175044.GB9792@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.ni@hp.com \
--cc=steve.cameron@hp.com \
--cc=torben.mathiasen@hp.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
all inboxes | Powered by JetHome®