Re: [PATCH] devexit fixes in i82092.c

Dave Jones (davej@suse.de)
Sun, 17 Mar 2002 00:15:33 +0100


On Sat, Mar 16, 2002 at 02:26:23PM -0800, Linus Torvalds wrote:

> One question that hasn't come up: do we actually want to use the "remove"
> function for this, or have a separate shutdown function? Are there reasons
> to not use "remove" for shutdown?

Something that came to mind on reading this thread that I want
clarification on.. Take for example, the case of an IDE controller.
If on shutdown we walk the driverfs tree shutting things down,
it's going to power off its hard disks, then do whatever magic is
needed to the ide host bridge.

This makes sense for a shutdown, and suspend-to-disk, but not for
a reboot imo (senseless spinning down/up of drives).
So some means is probably going to be needed for drivers to
distinguish between a reboot & shutdown/suspend.

There may be other such devices too, but this was the more
obvious one that came to mind. Or am I way off base here?

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/