From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Randy Dunlap <randy_d_dunlap@linux.intel.com>
Cc: scsi <linux-scsi@vger.kernel.org>, ide <linux-ide@vger.kernel.org>
Subject: Re: [PATCH] shutdown processing
Date: Thu, 16 Feb 2006 09:58:33 +0100 [thread overview]
Message-ID: <43F43EB9.40406@s5r6.in-berlin.de> (raw)
In-Reply-To: <20060215114605.1568c8cc.randy_d_dunlap@linux.intel.com>
Randy Dunlap wrote:
> From: Randy Dunlap <randy_d_dunlap@linux.intel.com>
>
> Add ability for SCSI drivers to invoke a shutdown method.
> This allows drivers to make drives safe for shutdown/poweroff,
> for example. Some drives need this to prevent possible problems.
>
> Signed-off-by: Randy Dunlap <randy_d_dunlap@linux.intel.com>
Why are you calling these from SCSI? Wouldn't ahci_pci_driver.remove()
and piix_pci_driver.remove() be a proper place to perform what you are
doing in ata_device_shutdown?
[...]
> EXPORT_SYMBOL_GPL(ata_device_suspend);
> EXPORT_SYMBOL_GPL(ata_device_resume);
> +EXPORT_SYMBOL_GPL(ata_device_shutdown);
> EXPORT_SYMBOL_GPL(ata_scsi_device_suspend);
> EXPORT_SYMBOL_GPL(ata_scsi_device_resume);
> +EXPORT_SYMBOL_GPL(ata_scsi_device_shutdown);
[...]
Side note: If you would prepare the host template in libata, you
wouldn't need to export these and other symbols. As was AFAIR discussed
by other people before, libata could certainly hide scsi_host_template
from ATA drivers entirely.
--
Stefan Richter
-=====-=-==- --=- =----
http://arcgraph.de/sr/
next prev parent reply other threads:[~2006-02-16 8:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-15 19:46 [PATCH] shutdown processing Randy Dunlap
2006-02-16 8:58 ` Stefan Richter [this message]
2006-02-16 18:40 ` Randy Dunlap
2006-02-16 18:56 ` Stefan Richter
2006-02-16 19:12 ` Randy Dunlap
2006-02-17 19:15 ` Stefan Richter
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=43F43EB9.40406@s5r6.in-berlin.de \
--to=stefanr@s5r6.in-berlin.de \
--cc=linux-ide@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=randy_d_dunlap@linux.intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.