From: Greg KH <greg@kroah.com>
To: wit <is01kzh@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: about probing a device
Date: Tue, 9 Oct 2007 21:46:19 -0700 [thread overview]
Message-ID: <20071010044619.GA23561@kroah.com> (raw)
In-Reply-To: <105610bf0710091839r3b2fc1bfp4260ceaf6ad94b7@mail.gmail.com>
On Wed, Oct 10, 2007 at 09:39:44AM +0800, wit wrote:
> Hi,
> I found these routines in the kernel, does this means only one driver
> can be matched to a device?
Yes, you are correct, that is how the driver model currently works.
> What if two drivers both can drive the device, like sd & sg in scsi
> subsystem?
You have to go through a lot of pain to get it to work :)
Or create a virtual bus and devices, but that is not how scsi decided to
go about this.
I do have some half-baked patches to fix this in a generic way, to allow
multiple drivers to bind to devices, but it's not fully working right
now and I got side-tracked by having to clean up the kset/kobject/ktype
mess first to get this to work properly, so it might be a few months.
Why, is there some use for multiple drivers to devices that you want to
use?
thanks,
greg k-h
next prev parent reply other threads:[~2007-10-10 5:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-10 1:39 about probing a device wit
2007-10-10 4:46 ` Greg KH [this message]
[not found] ` <105610bf0710100841t1c9463c1q9742534c8bb0dfe5@mail.gmail.com>
2007-10-10 15:59 ` Greg KH
2007-10-10 12:09 ` Alan Cox
2007-10-10 15:50 ` wit
2007-10-10 16:26 ` Cornelia Huck
2007-10-11 10:44 ` wit
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=20071010044619.GA23561@kroah.com \
--to=greg@kroah.com \
--cc=is01kzh@gmail.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