]> git.baikalelectronics.ru Git - kernel.git/commit
ata: ahci: Add shutdown to freeze hardware resources of ahci
authorPrabhakar Kushwaha <pkushwaha@marvell.com>
Sat, 25 Jan 2020 03:37:29 +0000 (03:37 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 30 Jan 2020 04:02:15 +0000 (21:02 -0700)
commit45dd6057d5e79d4641148667502def2e5cf81f55
tree77316510d102f161fc28e2cb08732744ffb9262f
parentd3215bdc1c326fe51e4ca8cc9ccce1786330680a
ata: ahci: Add shutdown to freeze hardware resources of ahci

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>
drivers/ata/ahci.c
drivers/ata/libata-core.c
include/linux/libata.h