Skip to content

Commit 154a7cd

Browse files
shivasharan-smartinkpetersen
authored andcommitted
scsi: megaraid_sas: Introduce new Aero adapter type
Identify all Aero controller PCI IDs with new adapter type. Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 630d42b commit 154a7cd

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

drivers/scsi/megaraid/megaraid_sas.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,7 @@ enum MR_ADAPTER_TYPE {
15701570
THUNDERBOLT_SERIES = 2,
15711571
INVADER_SERIES = 3,
15721572
VENTURA_SERIES = 4,
1573+
AERO_SERIES = 5,
15731574
};
15741575

15751576
/*

drivers/scsi/megaraid/megaraid_sas_base.c

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5439,6 +5439,7 @@ static int megasas_init_fw(struct megasas_instance *instance)
54395439
if (instance->msix_vectors > 8)
54405440
instance->msix_combined = true;
54415441
break;
5442+
case AERO_SERIES:
54425443
case VENTURA_SERIES:
54435444
if (instance->msix_vectors > 16)
54445445
instance->msix_combined = true;
@@ -6223,12 +6224,14 @@ megasas_set_dma_mask(struct megasas_instance *instance)
62236224
/*
62246225
* megasas_set_adapter_type - Set adapter type.
62256226
* Supported controllers can be divided in
6226-
* 4 categories- enum MR_ADAPTER_TYPE {
6227-
* MFI_SERIES = 1,
6228-
* THUNDERBOLT_SERIES = 2,
6229-
* INVADER_SERIES = 3,
6230-
* VENTURA_SERIES = 4,
6231-
* };
6227+
* different categories-
6228+
* enum MR_ADAPTER_TYPE {
6229+
* MFI_SERIES = 1,
6230+
* THUNDERBOLT_SERIES = 2,
6231+
* INVADER_SERIES = 3,
6232+
* VENTURA_SERIES = 4,
6233+
* AERO_SERIES = 5,
6234+
* };
62326235
* @instance: Adapter soft state
62336236
* return: void
62346237
*/
@@ -6243,6 +6246,8 @@ static inline void megasas_set_adapter_type(struct megasas_instance *instance)
62436246
case PCI_DEVICE_ID_LSI_AERO_10E2:
62446247
case PCI_DEVICE_ID_LSI_AERO_10E5:
62456248
case PCI_DEVICE_ID_LSI_AERO_10E6:
6249+
instance->adapter_type = AERO_SERIES;
6250+
break;
62466251
case PCI_DEVICE_ID_LSI_VENTURA:
62476252
case PCI_DEVICE_ID_LSI_CRUSADER:
62486253
case PCI_DEVICE_ID_LSI_HARPOON:
@@ -6310,6 +6315,7 @@ static int megasas_alloc_ctrl_mem(struct megasas_instance *instance)
63106315
if (megasas_alloc_mfi_ctrl_mem(instance))
63116316
goto fail;
63126317
break;
6318+
case AERO_SERIES:
63136319
case VENTURA_SERIES:
63146320
case THUNDERBOLT_SERIES:
63156321
case INVADER_SERIES:

0 commit comments

Comments
 (0)