From: Greg KH <greg@kroah.com>
To: Mehulkumar J Patel <mehul.patel@in.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Exclusive access to hardware for test purpose
Date: Fri, 29 Oct 2004 17:58:50 -0500 [thread overview]
Message-ID: <20041029225850.GB32032@kroah.com> (raw)
In-Reply-To: <OF8948B2BB.F576944E-ON65256F3C.00784B09-65256F3C.007CC331@in.ibm.com>
On Sat, Oct 30, 2004 at 04:08:46AM +0530, Mehulkumar J Patel wrote:
> Greg KH <greg@kroah.com>
> 30/10/2004 02:13
Ugh, don't use Notes to write internet email...
> > You need to disconnect the device from any current driver that might be
> > bound to it. Then you need to bind to the device to make sure that no
> > one else binds to it.
>
> Can you please elaborate, by disconnect, you mean unload the driver ?
No, the driver core matches up drivers to devices. You need to tell the
driver core to disconnect that match. See the recent patches to lkml
that expose the functions you need for what to do.
> If so I can not do that because one driver serving all cards including
> the one that I am not testing. So I can not unload driver.
> Please elaborate on how to bind to device.
Same as above, tell the driver core to do it. Don't mess with the pci
remove functions, as there are still portions of the kernel that think
the link is there if you do that.
Good luck,
greg k-h
next prev parent reply other threads:[~2004-10-29 23:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <OF2D431ED5.0E0040F4-ON65256F3B.0074805E-65256F3B.007703B3@in.ibm.com>
2004-10-29 20:43 ` Exclusive access to hardware for test purpose Greg KH
[not found] ` <OF8948B2BB.F576944E-ON65256F3C.00784B09-65256F3C.007CC331@in.ibm.com>
2004-10-29 22:58 ` Greg KH [this message]
2004-10-28 22:35 Mehul Patel
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=20041029225850.GB32032@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mehul.patel@in.ibm.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