Randy Dunlap wrote:
From: Randy Dunlap <randy_d_dunlap@xxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxx>
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/
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html