aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx
diff options
context:
space:
mode:
authorArmen Baloyan <armen.baloyan@qlogic.com>2013-10-30 03:38:22 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-12-19 10:38:59 -0500
commit03eb912a4d559c4c565814eaf2e18866c3d54487 (patch)
tree9482528a6fde69b92cab1393b4895e5dbc268631 /drivers/scsi/qla2xxx
parent767157c5d362152938d22b803944f6a3163ed94f (diff)
[SCSI] qla2xxx: Add changes to obtain ISPFX00 adapters product information in accordance with firmware update.
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>
Diffstat (limited to 'drivers/scsi/qla2xxx')
-rw-r--r--drivers/scsi/qla2xxx/qla_attr.c4
-rw-r--r--drivers/scsi/qla2xxx/qla_dbg.c1
-rw-r--r--drivers/scsi/qla2xxx/qla_mr.c4
-rw-r--r--drivers/scsi/qla2xxx/qla_mr.h5
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c8
5 files changed, 8 insertions, 14 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c
index 2a14df86f639..b8c15ed279aa 100644
--- a/drivers/scsi/qla2xxx/qla_attr.c
+++ b/drivers/scsi/qla2xxx/qla_attr.c
@@ -956,10 +956,6 @@ qla2x00_model_name_show(struct device *dev, struct device_attribute *attr,
956{ 956{
957 scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); 957 scsi_qla_host_t *vha = shost_priv(class_to_shost(dev));
958 958
959 if (IS_QLAFX00(vha->hw))
960 return snprintf(buf, PAGE_SIZE, "%s\n",
961 vha->hw->mr.product_name);
962
963 return snprintf(buf, PAGE_SIZE, "%s\n", vha->hw->model_number); 959 return snprintf(buf, PAGE_SIZE, "%s\n", vha->hw->model_number);
964} 960}
965 961
diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c
index 9cd767c26a27..f6103f553bb1 100644
--- a/drivers/scsi/qla2xxx/qla_dbg.c
+++ b/drivers/scsi/qla2xxx/qla_dbg.c
@@ -12,6 +12,7 @@
12 * | Level | Last Value Used | Holes | 12 * | Level | Last Value Used | Holes |
13 * ---------------------------------------------------------------------- 13 * ----------------------------------------------------------------------
14 * | Module Init and Probe | 0x015b | 0x4b,0xba,0xfa | 14 * | Module Init and Probe | 0x015b | 0x4b,0xba,0xfa |
15 * | | | 0x0x015a |
15 * | Mailbox commands | 0x1187 | 0x111a-0x111b | 16 * | Mailbox commands | 0x1187 | 0x111a-0x111b |
16 * | | | 0x1155-0x1158 | 17 * | | | 0x1155-0x1158 |
17 * | | | 0x1018-0x1019 | 18 * | | | 0x1018-0x1019 |
diff --git a/drivers/scsi/qla2xxx/qla_mr.c b/drivers/scsi/qla2xxx/qla_mr.c
index 316fb64a64a7..ba6f8b139c98 100644
--- a/drivers/scsi/qla2xxx/qla_mr.c
+++ b/drivers/scsi/qla2xxx/qla_mr.c
@@ -1967,8 +1967,8 @@ qlafx00_fx_disc(scsi_qla_host_t *vha, fc_port_t *fcport, uint16_t fx_type)
1967 if (fx_type == FXDISC_GET_CONFIG_INFO) { 1967 if (fx_type == FXDISC_GET_CONFIG_INFO) {
1968 struct config_info_data *pinfo = 1968 struct config_info_data *pinfo =
1969 (struct config_info_data *) fdisc->u.fxiocb.rsp_addr; 1969 (struct config_info_data *) fdisc->u.fxiocb.rsp_addr;
1970 memcpy(&vha->hw->mr.product_name, pinfo->product_name, 1970 strcpy(vha->hw->model_number, pinfo->model_num);
1971 sizeof(vha->hw->mr.product_name)); 1971 strcpy(vha->hw->model_desc, pinfo->model_description);
1972 memcpy(&vha->hw->mr.symbolic_name, pinfo->symbolic_name, 1972 memcpy(&vha->hw->mr.symbolic_name, pinfo->symbolic_name,
1973 sizeof(vha->hw->mr.symbolic_name)); 1973 sizeof(vha->hw->mr.symbolic_name));
1974 memcpy(&vha->hw->mr.serial_num, pinfo->serial_num, 1974 memcpy(&vha->hw->mr.serial_num, pinfo->serial_num,
diff --git a/drivers/scsi/qla2xxx/qla_mr.h b/drivers/scsi/qla2xxx/qla_mr.h
index c8b8acd31d44..1416e5edaf3b 100644
--- a/drivers/scsi/qla2xxx/qla_mr.h
+++ b/drivers/scsi/qla2xxx/qla_mr.h
@@ -304,7 +304,9 @@ struct register_host_info {
304#define QLAFX00_TGT_NODE_LIST_SIZE (sizeof(uint32_t) * 32) 304#define QLAFX00_TGT_NODE_LIST_SIZE (sizeof(uint32_t) * 32)
305 305
306struct config_info_data { 306struct config_info_data {
307 uint8_t product_name[256]; 307 uint8_t model_num[16];
308 uint8_t model_description[80];
309 uint8_t reserved0[160];
308 uint8_t symbolic_name[64]; 310 uint8_t symbolic_name[64];
309 uint8_t serial_num[32]; 311 uint8_t serial_num[32];
310 uint8_t hw_version[16]; 312 uint8_t hw_version[16];
@@ -491,7 +493,6 @@ struct qla_mt_iocb_rsp_fx00 {
491#define FX00_DEF_RATOV 10 493#define FX00_DEF_RATOV 10
492 494
493struct mr_data_fx00 { 495struct mr_data_fx00 {
494 uint8_t product_name[256];
495 uint8_t symbolic_name[64]; 496 uint8_t symbolic_name[64];
496 uint8_t serial_num[32]; 497 uint8_t serial_num[32];
497 uint8_t hw_version[16]; 498 uint8_t hw_version[16];
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 4ab9a272e11b..b1bfa72765e0 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -2836,12 +2836,8 @@ skip_dpc:
2836 2836
2837 qla2x00_dfs_setup(base_vha); 2837 qla2x00_dfs_setup(base_vha);
2838 2838
2839 if (IS_QLAFX00(ha)) 2839 ql_log(ql_log_info, base_vha, 0x00fb,
2840 ql_log(ql_log_info, base_vha, 0x015a, 2840 "QLogic %s - %s.\n", ha->model_number, ha->model_desc);
2841 "QLogic %s.\n", ha->mr.product_name);
2842 else
2843 ql_log(ql_log_info, base_vha, 0x00fb,
2844 "QLogic %s - %s.\n", ha->model_number, ha->model_desc);
2845 ql_log(ql_log_info, base_vha, 0x00fc, 2841 ql_log(ql_log_info, base_vha, 0x00fc,
2846 "ISP%04X: %s @ %s hdma%c host#=%ld fw=%s.\n", 2842 "ISP%04X: %s @ %s hdma%c host#=%ld fw=%s.\n",
2847 pdev->device, ha->isp_ops->pci_info_str(base_vha, pci_info), 2843 pdev->device, ha->isp_ops->pci_info_str(base_vha, pci_info),