Skip to content

Commit 171e490

Browse files
Giridhar Malavalimartinkpetersen
authored andcommitted
scsi: qla2xxx: Add new FC-NVMe enable BIT to enable FC-NVMe feature
This patch adds new BIT detection to enable FC-NVMe feature in the driver. [mkp: fixed Giridhar's SoB] Signed-off-by: Giridhar Malavali <gmalavali@marvell.com> Signed-off-by: Himanshu Madhani <hmadhani@marvell.com> Reviewed-by: Ewan D. Milne <emilne@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent ede2afb commit 171e490

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎drivers/scsi/qla2xxx/qla_def.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3966,6 +3966,9 @@ struct qla_hw_data {
39663966
uint16_t fw_subminor_version;
39673967
uint16_t fw_attributes;
39683968
uint16_t fw_attributes_h;
3969+
#define FW_ATTR_H_NVME BIT_10
3970+
#define FW_ATTR_H_NVME_UPDATED BIT_14
3971+
39693972
uint16_t fw_attributes_ext[2];
39703973
uint32_t fw_memory_size;
39713974
uint32_t fw_transfer_size;

‎drivers/scsi/qla2xxx/qla_mbx.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,9 @@ qla2x00_get_fw_version(scsi_qla_host_t *vha)
11091109
* FW supports nvme and driver load parameter requested nvme.
11101110
* BIT 26 of fw_attributes indicates NVMe support.
11111111
*/
1112-
if ((ha->fw_attributes_h & 0x400) && ql2xnvmeenable) {
1112+
if ((ha->fw_attributes_h &
1113+
(FW_ATTR_H_NVME | FW_ATTR_H_NVME_UPDATED)) &&
1114+
ql2xnvmeenable) {
11131115
vha->flags.nvme_enabled = 1;
11141116
ql_log(ql_log_info, vha, 0xd302,
11151117
"%s: FC-NVMe is Enabled (0x%x)\n",

0 commit comments

Comments
 (0)