ata: ahci_platform: Add shutdown handler
authorNate Watterson <nwatters@codeaurora.org>
Thu, 20 Jul 2017 19:26:24 +0000 (15:26 -0400)
committerTejun Heo <tj@kernel.org>
Fri, 4 Aug 2017 20:34:14 +0000 (13:34 -0700)
commit8eede5bc4ef04281fbba7ddfe157052d0e76075d
tree87c88cf41e67e8168c4fd7c965d7ec323bb76e67
parentafbd39a42e2d777852a2809298fd4e71b1e5abf7
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>
drivers/ata/ahci_platform.c
drivers/ata/libahci_platform.c
include/linux/ahci_platform.h