[SCSI] qla2xxx: Add changes to obtain ISPFX00 adapters product information in accorda...
authorArmen Baloyan <armen.baloyan@qlogic.com>
Wed, 30 Oct 2013 07:38:22 +0000 (03:38 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 19 Dec 2013 15:38:59 +0000 (07:38 -0800)
Signed-off-by: Armen Baloyan <armen.baloyan@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_attr.c
drivers/scsi/qla2xxx/qla_dbg.c
drivers/scsi/qla2xxx/qla_mr.c
drivers/scsi/qla2xxx/qla_mr.h
drivers/scsi/qla2xxx/qla_os.c

index 2a14df86f63992c74b2997b759ac656855d0bd5b..b8c15ed279aa3eecf2b7e97cd687f2571516a43c 100644 (file)
@@ -956,10 +956,6 @@ qla2x00_model_name_show(struct device *dev, struct device_attribute *attr,
 {
        scsi_qla_host_t *vha = shost_priv(class_to_shost(dev));
 
-       if (IS_QLAFX00(vha->hw))
-               return snprintf(buf, PAGE_SIZE, "%s\n",
-                   vha->hw->mr.product_name);
-
        return snprintf(buf, PAGE_SIZE, "%s\n", vha->hw->model_number);
 }
 
index 9cd767c26a2758a823565be43ea77c95684fe278..f6103f553bb1b648fac1755add363c661d454295 100644 (file)
@@ -12,6 +12,7 @@
  * |             Level            |   Last Value Used  |     Holes     |
  * ----------------------------------------------------------------------
  * | Module Init and Probe        |       0x015b       | 0x4b,0xba,0xfa |
+ * |                              |                    | 0x0x015a      |
  * | Mailbox commands             |       0x1187       | 0x111a-0x111b  |
  * |                              |                    | 0x1155-0x1158  |
  * |                              |                    | 0x1018-0x1019  |
index 316fb64a64a73ba940a1f87aab0b25a6582778f9..ba6f8b139c984b88a5a5396ab70e1e1109af72b6 100644 (file)
@@ -1967,8 +1967,8 @@ qlafx00_fx_disc(scsi_qla_host_t *vha, fc_port_t *fcport, uint16_t fx_type)
        if (fx_type == FXDISC_GET_CONFIG_INFO) {
                struct config_info_data *pinfo =
                    (struct config_info_data *) fdisc->u.fxiocb.rsp_addr;
-               memcpy(&vha->hw->mr.product_name, pinfo->product_name,
-                   sizeof(vha->hw->mr.product_name));
+               strcpy(vha->hw->model_number, pinfo->model_num);
+               strcpy(vha->hw->model_desc, pinfo->model_description);
                memcpy(&vha->hw->mr.symbolic_name, pinfo->symbolic_name,
                    sizeof(vha->hw->mr.symbolic_name));
                memcpy(&vha->hw->mr.serial_num, pinfo->serial_num,
index c8b8acd31d4456d1bb60eaee0d3ea355ee6813e5..1416e5edaf3b38d6fb158c18bd90f4a840c52d3c 100644 (file)
@@ -304,7 +304,9 @@ struct register_host_info {
 #define QLAFX00_TGT_NODE_LIST_SIZE (sizeof(uint32_t) * 32)
 
 struct config_info_data {
-       uint8_t         product_name[256];
+       uint8_t         model_num[16];
+       uint8_t         model_description[80];
+       uint8_t         reserved0[160];
        uint8_t         symbolic_name[64];
        uint8_t         serial_num[32];
        uint8_t         hw_version[16];
@@ -491,7 +493,6 @@ struct qla_mt_iocb_rsp_fx00 {
 #define FX00_DEF_RATOV 10
 
 struct mr_data_fx00 {
-       uint8_t product_name[256];
        uint8_t symbolic_name[64];
        uint8_t serial_num[32];
        uint8_t hw_version[16];
index 4ab9a272e11b6a5765831a1f2a31acf040219d43..b1bfa72765e091fe6b90fd0ebb8c3342a8a1a84e 100644 (file)
@@ -2836,12 +2836,8 @@ skip_dpc:
 
        qla2x00_dfs_setup(base_vha);
 
-       if (IS_QLAFX00(ha))
-               ql_log(ql_log_info, base_vha, 0x015a,
-                   "QLogic %s.\n", ha->mr.product_name);
-       else
-               ql_log(ql_log_info, base_vha, 0x00fb,
-                   "QLogic %s - %s.\n", ha->model_number, ha->model_desc);
+       ql_log(ql_log_info, base_vha, 0x00fb,
+           "QLogic %s - %s.\n", ha->model_number, ha->model_desc);
        ql_log(ql_log_info, base_vha, 0x00fc,
            "ISP%04X: %s @ %s hdma%c host#=%ld fw=%s.\n",
            pdev->device, ha->isp_ops->pci_info_str(base_vha, pci_info),