summaryrefslogtreecommitdiff
path: root/include/linux/ahci_platform.h
diff options
context:
space:
mode:
authorNate Watterson <nwatters@codeaurora.org>2017-07-20 22:26:24 +0300
committerTejun Heo <tj@kernel.org>2017-08-04 23:34:14 +0300
commit8eede5bc4ef04281fbba7ddfe157052d0e76075d (patch)
tree87c88cf41e67e8168c4fd7c965d7ec323bb76e67 /include/linux/ahci_platform.h
parentafbd39a42e2d777852a2809298fd4e71b1e5abf7 (diff)
downloadlinux-8eede5bc4ef04281fbba7ddfe157052d0e76075d.tar.xz
ata: ahci_platform: Add shutdown handler
The newly introduced ahci_platform_shutdown() method is called during system shutdown to disable host controller DMA and interrupts in order to avoid potentially corrupting or otherwise interfering with a new kernel being started with kexec. Signed-off-by: Nate Watterson <nwatters@codeaurora.org> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/ahci_platform.h')
-rw-r--r--include/linux/ahci_platform.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ahci_platform.h b/include/linux/ahci_platform.h
index a270f25ee7c7..1b0a17b22cd3 100644
--- a/include/linux/ahci_platform.h
+++ b/include/linux/ahci_platform.h
@@ -36,6 +36,8 @@ int ahci_platform_init_host(struct platform_device *pdev,
const struct ata_port_info *pi_template,
struct scsi_host_template *sht);
+void ahci_platform_shutdown(struct platform_device *pdev);
+
int ahci_platform_suspend_host(struct device *dev);
int ahci_platform_resume_host(struct device *dev);
int ahci_platform_suspend(struct device *dev);