From: linas@austin.ibm.com
To: linux-hotplug@vger.kernel.org
Subject: Re: unclean yanking out of device?
Date: Thu, 15 Jan 2004 01:20:57 +0000 [thread overview]
Message-ID: <20040114192057.D40506@forte.austin.ibm.com> (raw)
In-Reply-To: <20040114160002.G57254@forte.austin.ibm.com>
On Wed, Jan 14, 2004 at 04:34:04PM -0800, Greg KH wrote:
> On Wed, Jan 14, 2004 at 04:36:29PM -0800, David Brownell wrote:
> >
> > Actually there's a good argument that every PCI driver for hardware that
> > can be packaged onto CardBus _should_ handle those "unclean" shutdown
> > modes ... and as Linus has observed, it's awfully convenient that most
> > such cases also cause reads from those devices to return all-ones!
> >
> > The electrical details are of course a different issue. Cardbus and
> > the various other kinds of PCI hotplug have different answers, so
> > there's no universal guarantee that drivers will get notified first.
>
> Yes, but even cardbus notifies the driver that the device is now gone,
> which is the main point I was trying to make. We already have the
> framework for this to work properly with all PCI devices and drivers,
> let's not go try to make up a new one.
Oh, well, that was my question, then. struct pci_driver in
include/linux/pci.h has a (*remove)() but the way its described
makes it sound like its supposed to be called before, not after
the remove.
I *like* existing frameworks, I just haven't found it yet. This
is literally day-2 on this task for me.
--linas
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2004-01-15 1:20 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-14 22:00 unclean yanking out of device? linas
2004-01-14 22:15 ` Måns Rullgård
2004-01-14 22:19 ` Greg KH
2004-01-14 23:08 ` linas
2004-01-14 23:24 ` Greg KH
2004-01-14 23:49 ` Paul Ionescu
2004-01-14 23:57 ` linas
2004-01-15 0:19 ` Oliver Neukum
2004-01-15 0:19 ` Greg KH
2004-01-15 0:34 ` Greg KH
2004-01-15 0:36 ` David Brownell
2004-01-15 1:16 ` linas
2004-01-15 1:20 ` linas [this message]
2004-01-15 1:33 ` Greg KH
2004-01-15 1:35 ` Greg KH
2004-01-15 1:57 ` linas
2004-01-15 17:17 ` Richard Troth
2004-01-15 18:38 ` linas
2004-01-15 21:22 ` David Hinds
2004-01-24 0:38 ` 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=20040114192057.D40506@forte.austin.ibm.com \
--to=linas@austin.ibm.com \
--cc=linux-hotplug@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;
as well as URLs for NNTP newsgroup(s).