aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2012-05-09 21:16:24 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-05-17 05:30:57 -0400
commitb99570dd63757834cd0c21e1b117c857af90a04a (patch)
tree0ea99e9afebfeb3d1ba690143ffaf295e0d23ca2 /drivers/scsi/lpfc
parent8a9d2e8003040d2e1cd24ac5e83bb30b68f7f488 (diff)
[SCSI] lpfc 8.3.31: Fix bug with driver not supporting the get controller attributes command
Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r--drivers/scsi/lpfc/lpfc_bsg.c3
-rw-r--r--drivers/scsi/lpfc/lpfc_bsg.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_bsg.c b/drivers/scsi/lpfc/lpfc_bsg.c
index 141e4b40bb55..7d5641db5ee4 100644
--- a/drivers/scsi/lpfc/lpfc_bsg.c
+++ b/drivers/scsi/lpfc/lpfc_bsg.c
@@ -1,7 +1,7 @@
1/******************************************************************* 1/*******************************************************************
2 * This file is part of the Emulex Linux Device Driver for * 2 * This file is part of the Emulex Linux Device Driver for *
3 * Fibre Channel Host Bus Adapters. * 3 * Fibre Channel Host Bus Adapters. *
4 * Copyright (C) 2009-2011 Emulex. All rights reserved. * 4 * Copyright (C) 2009-2012 Emulex. All rights reserved. *
5 * EMULEX and SLI are trademarks of Emulex. * 5 * EMULEX and SLI are trademarks of Emulex. *
6 * www.emulex.com * 6 * www.emulex.com *
7 * * 7 * *
@@ -3978,6 +3978,7 @@ lpfc_bsg_handle_sli_cfg_mbox(struct lpfc_hba *phba, struct fc_bsg_job *job,
3978 } else if (subsys == SLI_CONFIG_SUBSYS_COMN) { 3978 } else if (subsys == SLI_CONFIG_SUBSYS_COMN) {
3979 switch (opcode) { 3979 switch (opcode) {
3980 case COMN_OPCODE_GET_CNTL_ADDL_ATTRIBUTES: 3980 case COMN_OPCODE_GET_CNTL_ADDL_ATTRIBUTES:
3981 case COMN_OPCODE_GET_CNTL_ATTRIBUTES:
3981 lpfc_printf_log(phba, KERN_INFO, LOG_LIBDFC, 3982 lpfc_printf_log(phba, KERN_INFO, LOG_LIBDFC,
3982 "3106 Handled SLI_CONFIG " 3983 "3106 Handled SLI_CONFIG "
3983 "subsys_comn, opcode:x%x\n", 3984 "subsys_comn, opcode:x%x\n",
diff --git a/drivers/scsi/lpfc/lpfc_bsg.h b/drivers/scsi/lpfc/lpfc_bsg.h
index edfe61fc52b1..67f7d0a160d1 100644
--- a/drivers/scsi/lpfc/lpfc_bsg.h
+++ b/drivers/scsi/lpfc/lpfc_bsg.h
@@ -1,7 +1,7 @@
1/******************************************************************* 1/*******************************************************************
2 * This file is part of the Emulex Linux Device Driver for * 2 * This file is part of the Emulex Linux Device Driver for *
3 * Fibre Channel Host Bus Adapters. * 3 * Fibre Channel Host Bus Adapters. *
4 * Copyright (C) 2010 Emulex. All rights reserved. * 4 * Copyright (C) 2010-2012 Emulex. All rights reserved. *
5 * EMULEX and SLI are trademarks of Emulex. * 5 * EMULEX and SLI are trademarks of Emulex. *
6 * www.emulex.com * 6 * www.emulex.com *
7 * * 7 * *
@@ -249,6 +249,7 @@ struct lpfc_sli_config_emb1_subsys {
249#define COMN_OPCODE_READ_OBJECT_LIST 0xAD 249#define COMN_OPCODE_READ_OBJECT_LIST 0xAD
250#define COMN_OPCODE_DELETE_OBJECT 0xAE 250#define COMN_OPCODE_DELETE_OBJECT 0xAE
251#define COMN_OPCODE_GET_CNTL_ADDL_ATTRIBUTES 0x79 251#define COMN_OPCODE_GET_CNTL_ADDL_ATTRIBUTES 0x79
252#define COMN_OPCODE_GET_CNTL_ATTRIBUTES 0x20
252 uint32_t timeout; 253 uint32_t timeout;
253 uint32_t request_length; 254 uint32_t request_length;
254 uint32_t word9; 255 uint32_t word9;