[SCSI] qla2xxx: Print proper QLAFX00 product name at probe.
authorArmen Baloyan <armen.baloyan@qlogic.com>
Wed, 30 Oct 2013 07:38:08 +0000 (03:38 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 19 Dec 2013 15:38:56 +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_dbg.c
drivers/scsi/qla2xxx/qla_os.c

index ee5c1833eb731cb1e0e731448c287ca1b8f5b2ad..acc1ea422cbc0d529f4d160e88f11ac812f2f21c 100644 (file)
@@ -11,7 +11,7 @@
  * ----------------------------------------------------------------------
  * |             Level            |   Last Value Used  |     Holes     |
  * ----------------------------------------------------------------------
- * | Module Init and Probe        |       0x0159       | 0x4b,0xba,0xfa |
+ * | Module Init and Probe        |       0x015a       | 0x4b,0xba,0xfa |
  * | Mailbox commands             |       0x1181       | 0x111a-0x111b  |
  * |                              |                    | 0x1155-0x1158  |
  * |                              |                    | 0x1018-0x1019  |
index 52be35e0300c901ac18faff6ded2aaf65e43b675..2e4879b24963787a43c22a262f3975317264a90a 100644 (file)
@@ -2910,8 +2910,12 @@ skip_dpc:
 
        qla2x00_dfs_setup(base_vha);
 
-       ql_log(ql_log_info, base_vha, 0x00fb,
-           "QLogic %s - %s.\n", ha->model_number, ha->model_desc);
+       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, 0x00fc,
            "ISP%04X: %s @ %s hdma%c host#=%ld fw=%s.\n",
            pdev->device, ha->isp_ops->pci_info_str(base_vha, pci_info),