summaryrefslogtreecommitdiff
path: root/drivers/scsi/cxlflash/main.h
diff options
context:
space:
mode:
authorUma Krishnan <ukrishn@linux.vnet.ibm.com>2016-06-15 23:49:57 (GMT)
committerMartin K. Petersen <martin.petersen@oracle.com>2016-07-13 03:16:31 (GMT)
commit704c4b0ddc03fc8a6575086070a823d3ef6e5fc4 (patch)
tree411adc1c784f5689aba5c12d8e288c081e6516a7 /drivers/scsi/cxlflash/main.h
parent96e1b660faa44c958d19ccf064b939a00bed6c90 (diff)
downloadlinux-704c4b0ddc03fc8a6575086070a823d3ef6e5fc4.tar.xz
cxlflash: Shutdown notify support for CXL Flash cards
Some CXL Flash cards need notification of device shutdown in order to flush pending I/Os. A PCI notification hook for shutdown has been added where the driver notifies the card and returns. When the device is removed in the PCI remove path, notification code will wait for shutdown processing to complete. Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com> Acked-by: Manoj N. Kumar <manoj@linux.vnet.ibm.com> Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/cxlflash/main.h')
-rw-r--r--drivers/scsi/cxlflash/main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/cxlflash/main.h b/drivers/scsi/cxlflash/main.h
index 029f517..f54bbd5 100644
--- a/drivers/scsi/cxlflash/main.h
+++ b/drivers/scsi/cxlflash/main.h
@@ -89,6 +89,7 @@ enum undo_level {
struct dev_dependent_vals {
u64 max_sectors;
u64 flags;
+#define CXLFLASH_NOTIFY_SHUTDOWN 0x0000000000000001ULL
};
struct asyc_intr_info {