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>
This commit is contained in:

committed by
Tejun Heo

parent
afbd39a42e
commit
8eede5bc4e
@@ -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);
|
||||
|
Reference in New Issue
Block a user