From: Greg KH <gregkh@suse.de>
To: fangxiaozhi 00110321 <huananhu@huawei.com>
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, greg@kroah.com
Subject: Re: The problems for driver module loading
Date: Thu, 9 Apr 2009 07:47:36 -0700 [thread overview]
Message-ID: <20090409144736.GA7351@suse.de> (raw)
In-Reply-To: <fad7ab4fac82c.ac82cfad7ab4f@huawei.com>
On Thu, Apr 09, 2009 at 04:39:52PM +0800, fangxiaozhi 00110321 wrote:
> Dear All:
>
> I am sorry, I want to know is there the feature of priority (PRI) for
> kernel driver loading in Linux, such as in Windows or Mac OS.
No, Linux does not have that. It is really a "first driver
loaded/linked that wants to grab the driver, wins."
> I develop an independent ECM driver for our standard ECM ether device.
> And then I install it on some Linux system, such as OpenSUSE 11.0 or
> Fedora 10.
Why a separate driver? Why not just modify the existing one?
> But in these systems, they also have a built-in ECM driver
> cdc_ether.ko. So, while I plug in our device, then the system often
> attaches cdc_ether.ko driver for our device, but not attaching ours.
>
> Because cdc_ether.ko driver can not support our QMI protocol, so we
> want the Linux system can always attach our driver to our device, but
> not cdc_ether.ko driver.
>
> How can I do for this?
Add a blacklist entry in the cdc_ether driver.
Or, from userspace, unbind the device from cdc_ether and bind it to your
device. This can easily be done in userspace through sysfs using a
script triggered from udev.
Do you have a pointer to your driver anywhere?
thanks,
greg k-h
prev parent reply other threads:[~2009-04-09 14:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-09 8:39 The problems for driver module loading fangxiaozhi 00110321
2009-04-09 9:49 ` Alan Cox
2009-04-09 14:47 ` Greg KH [this message]
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=20090409144736.GA7351@suse.de \
--to=gregkh@suse.de \
--cc=greg@kroah.com \
--cc=huananhu@huawei.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