From: Daniel Stodden <stodden@in.tum.de>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: pci: dev->driver "runtime" acquisition?
Date: 03 Dec 2001 18:29:57 +0100 [thread overview]
Message-ID: <1007400598.6982.2.camel@atbode65> (raw)
hi.
supposing i've got a "hotplug" style pci_driver,
but who's going to gain access to a device _not_ at initialization time,
i.e. not within pci_register_driver(), but rather somehere in a bottom
half. no pci_device_id* at pci_register_driver( ), since i don't
know the signature yet.
how do i request access here?
could anyone comment on the following please:
1. simple, but intrusive somehow:
dev_probe_lock()
if ( dev->driver == NULL )
dev->driver = my_driver;
dev_probe_unlock()
is the locking correct?
2. rather use pci_announce_device()?
my_driver->id_table =
somthing_i_just_built_on_the_fly_and_i_know_it_matches;
pci_announce_device( my_driver, dev );
/* probe() does the rest */
3. patch drivers/pci/pci.c?
pci_acquire_device( struct pci *dev, struct pci_driver *drv )
{
/* fill in 1. */
}
4. simply rely on the "compat", i.e. just taking over some resource?
i think that's not why it's been called "compat"
any better ideas? something i'm missing?
besides: policy? -- do i _have_ to pci_register_driver() at during
initialization before considering to actually drive something?
any help appreciated.
regards,
dns
--
__________________________________________________________________
mailto: stodden@in.tum.de
next reply other threads:[~2001-12-04 0:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-03 17:29 Daniel Stodden [this message]
2001-12-04 3:22 ` pci: dev->driver "runtime" acquisition? 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=1007400598.6982.2.camel@atbode65 \
--to=stodden@in.tum.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.