Skip to content

Commit 96e1b66

Browse files
umakrishnmartinkpetersen
authored andcommitted
cxlflash: Add device dependent flags
Device dependent flags are needed to support functions that are specific to a particular device. One such case is - some CXL Flash cards need to be notified of device shutdown. For other CXL devices, this feature does not prove to be useful yet. Such distinct features need to be identified in the driver to bypass or invoke specific functionality. In this patch, a member 'flags' has been added to device dependent values. These flags will be used and expanded in the future to support various device specific functions. Signed-off-by: Uma Krishnan <[email protected]> Acked-by: Manoj N. Kumar <[email protected]> Acked-by: Matthew R. Ochs <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent f411396 commit 96e1b66

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

drivers/scsi/cxlflash/main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2333,8 +2333,10 @@ static struct scsi_host_template driver_template = {
23332333
/*
23342334
* Device dependent values
23352335
*/
2336-
static struct dev_dependent_vals dev_corsa_vals = { CXLFLASH_MAX_SECTORS };
2337-
static struct dev_dependent_vals dev_flash_gt_vals = { CXLFLASH_MAX_SECTORS };
2336+
static struct dev_dependent_vals dev_corsa_vals = { CXLFLASH_MAX_SECTORS,
2337+
0ULL };
2338+
static struct dev_dependent_vals dev_flash_gt_vals = { CXLFLASH_MAX_SECTORS,
2339+
0ULL };
23382340

23392341
/*
23402342
* PCI device binding table

drivers/scsi/cxlflash/main.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ enum undo_level {
8888

8989
struct dev_dependent_vals {
9090
u64 max_sectors;
91+
u64 flags;
9192
};
9293

9394
struct asyc_intr_info {

0 commit comments

Comments
 (0)