summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPrabhakar Kushwaha <pkushwaha@marvell.com>2020-01-25 03:37:29 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-28 16:39:00 +0100
commit28a73a946a46397b3f2946dbd718ba4c0d6decab (patch)
tree7e87ef8b818f6d1a8e639fb3fb7e2912ca739270 /include
parent43cac315bec132e962e04c31fe888caac257ec0a (diff)
downloadlinux-stable-28a73a946a46397b3f2946dbd718ba4c0d6decab.tar.gz
linux-stable-28a73a946a46397b3f2946dbd718ba4c0d6decab.tar.bz2
linux-stable-28a73a946a46397b3f2946dbd718ba4c0d6decab.zip
ata: ahci: Add shutdown to freeze hardware resources of ahci
commit 10a663a1b15134a5a714aa515e11425a44d4fdf7 upstream. device_shutdown() called from reboot or power_shutdown expect all devices to be shutdown. Same is true for even ahci pci driver. As no ahci shutdown function is implemented, the ata subsystem always remains alive with DMA & interrupt support. File system related calls should not be honored after device_shutdown(). So defining ahci pci driver shutdown to freeze hardware (mask interrupt, stop DMA engine and free DMA resources). Signed-off-by: Prabhakar Kushwaha <pkushwaha@marvell.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/libata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index aff09d0b3545..75a916d7ab2a 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -1236,6 +1236,7 @@ struct pci_bits {
};
extern int pci_test_config_bits(struct pci_dev *pdev, const struct pci_bits *bits);
+extern void ata_pci_shutdown_one(struct pci_dev *pdev);
extern void ata_pci_remove_one(struct pci_dev *pdev);
#ifdef CONFIG_PM