diff options
author | Vikas Chaudhary <vikas.chaudhary@qlogic.com> | 2010-07-10 05:21:02 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-28 10:05:23 -0400 |
commit | c2660df310a3c445194748b54f51b7224639e742 (patch) | |
tree | b6f8d1410afc4d071e036124dfa59e7afd0aba7e /drivers/scsi/qla4xxx/ql4_init.c | |
parent | f4f5df23bf72208d0c2f1d8be629839924c2f4c2 (diff) |
[SCSI] qla4xxx: replace all dev_info, dev_warn, dev_err with ql4_printk
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: Ravi Anand <ravi.anand@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_init.c')
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_init.c | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_init.c b/drivers/scsi/qla4xxx/ql4_init.c index 539546df0376..5fc19c44bada 100644 --- a/drivers/scsi/qla4xxx/ql4_init.c +++ b/drivers/scsi/qla4xxx/ql4_init.c | |||
@@ -297,7 +297,7 @@ static int qla4xxx_fw_ready(struct scsi_qla_host *ha) | |||
297 | uint32_t timeout_count; | 297 | uint32_t timeout_count; |
298 | int ready = 0; | 298 | int ready = 0; |
299 | 299 | ||
300 | DEBUG2(dev_info(&ha->pdev->dev, "Waiting for Firmware Ready..\n")); | 300 | DEBUG2(ql4_printk(KERN_INFO, ha, "Waiting for Firmware Ready..\n")); |
301 | for (timeout_count = ADAPTER_INIT_TOV; timeout_count > 0; | 301 | for (timeout_count = ADAPTER_INIT_TOV; timeout_count > 0; |
302 | timeout_count--) { | 302 | timeout_count--) { |
303 | if (test_and_clear_bit(DPC_GET_DHCP_IP_ADDR, &ha->dpc_flags)) | 303 | if (test_and_clear_bit(DPC_GET_DHCP_IP_ADDR, &ha->dpc_flags)) |
@@ -370,29 +370,29 @@ static int qla4xxx_fw_ready(struct scsi_qla_host *ha) | |||
370 | 370 | ||
371 | if (!qla4xxx_wait_for_ip_config(ha) || | 371 | if (!qla4xxx_wait_for_ip_config(ha) || |
372 | timeout_count == 1) { | 372 | timeout_count == 1) { |
373 | DEBUG2(dev_info(&ha->pdev->dev, | 373 | DEBUG2(ql4_printk(KERN_INFO, ha, |
374 | "Firmware Ready..\n")); | 374 | "Firmware Ready..\n")); |
375 | /* The firmware is ready to process SCSI | 375 | /* The firmware is ready to process SCSI |
376 | commands. */ | 376 | commands. */ |
377 | DEBUG2(dev_info(&ha->pdev->dev, | 377 | DEBUG2(ql4_printk(KERN_INFO, ha, |
378 | "scsi%ld: %s: MEDIA TYPE" | 378 | "scsi%ld: %s: MEDIA TYPE" |
379 | " - %s\n", ha->host_no, | 379 | " - %s\n", ha->host_no, |
380 | __func__, (ha->addl_fw_state & | 380 | __func__, (ha->addl_fw_state & |
381 | FW_ADDSTATE_OPTICAL_MEDIA) | 381 | FW_ADDSTATE_OPTICAL_MEDIA) |
382 | != 0 ? "OPTICAL" : "COPPER")); | 382 | != 0 ? "OPTICAL" : "COPPER")); |
383 | DEBUG2(dev_info(&ha->pdev->dev, | 383 | DEBUG2(ql4_printk(KERN_INFO, ha, |
384 | "scsi%ld: %s: DHCPv4 STATE" | 384 | "scsi%ld: %s: DHCPv4 STATE" |
385 | " Enabled %s\n", ha->host_no, | 385 | " Enabled %s\n", ha->host_no, |
386 | __func__, (ha->addl_fw_state & | 386 | __func__, (ha->addl_fw_state & |
387 | FW_ADDSTATE_DHCPv4_ENABLED) != 0 ? | 387 | FW_ADDSTATE_DHCPv4_ENABLED) != 0 ? |
388 | "YES" : "NO")); | 388 | "YES" : "NO")); |
389 | DEBUG2(dev_info(&ha->pdev->dev, | 389 | DEBUG2(ql4_printk(KERN_INFO, ha, |
390 | "scsi%ld: %s: LINK %s\n", | 390 | "scsi%ld: %s: LINK %s\n", |
391 | ha->host_no, __func__, | 391 | ha->host_no, __func__, |
392 | (ha->addl_fw_state & | 392 | (ha->addl_fw_state & |
393 | FW_ADDSTATE_LINK_UP) != 0 ? | 393 | FW_ADDSTATE_LINK_UP) != 0 ? |
394 | "UP" : "DOWN")); | 394 | "UP" : "DOWN")); |
395 | DEBUG2(dev_info(&ha->pdev->dev, | 395 | DEBUG2(ql4_printk(KERN_INFO, ha, |
396 | "scsi%ld: %s: iSNS Service " | 396 | "scsi%ld: %s: iSNS Service " |
397 | "Started %s\n", | 397 | "Started %s\n", |
398 | ha->host_no, __func__, | 398 | ha->host_no, __func__, |
@@ -445,7 +445,7 @@ static int qla4xxx_init_firmware(struct scsi_qla_host *ha) | |||
445 | { | 445 | { |
446 | int status = QLA_ERROR; | 446 | int status = QLA_ERROR; |
447 | 447 | ||
448 | dev_info(&ha->pdev->dev, "Initializing firmware..\n"); | 448 | ql4_printk(KERN_INFO, ha, "Initializing firmware..\n"); |
449 | if (qla4xxx_initialize_fw_cb(ha) == QLA_ERROR) { | 449 | if (qla4xxx_initialize_fw_cb(ha) == QLA_ERROR) { |
450 | DEBUG2(printk("scsi%ld: %s: Failed to initialize firmware " | 450 | DEBUG2(printk("scsi%ld: %s: Failed to initialize firmware " |
451 | "control block\n", ha->host_no, __func__)); | 451 | "control block\n", ha->host_no, __func__)); |
@@ -694,18 +694,18 @@ int qla4_is_relogin_allowed(struct scsi_qla_host *ha, uint32_t conn_err) | |||
694 | err_code = ((conn_err & 0x00ff0000) >> 16); | 694 | err_code = ((conn_err & 0x00ff0000) >> 16); |
695 | login_rsp_sts_class = ((conn_err & 0x0000ff00) >> 8); | 695 | login_rsp_sts_class = ((conn_err & 0x0000ff00) >> 8); |
696 | if (err_code == 0x1c || err_code == 0x06) { | 696 | if (err_code == 0x1c || err_code == 0x06) { |
697 | DEBUG2(dev_info(&ha->pdev->dev, | 697 | DEBUG2(ql4_printk(KERN_INFO, ha, |
698 | ": conn_err=0x%08x, send target completed" | 698 | ": conn_err=0x%08x, send target completed" |
699 | " or access denied failure\n", conn_err)); | 699 | " or access denied failure\n", conn_err)); |
700 | relogin = 0; | 700 | relogin = 0; |
701 | } | 701 | } |
702 | if ((err_code == 0x08) && (login_rsp_sts_class == 0x02)) { | 702 | if ((err_code == 0x08) && (login_rsp_sts_class == 0x02)) { |
703 | /* Login Response PDU returned an error. | 703 | /* Login Response PDU returned an error. |
704 | Login Response Status in Error Code Detail | 704 | Login Response Status in Error Code Detail |
705 | indicates login should not be retried.*/ | 705 | indicates login should not be retried.*/ |
706 | DEBUG2(dev_info(&ha->pdev->dev, | 706 | DEBUG2(ql4_printk(KERN_INFO, ha, |
707 | ": conn_err=0x%08x, do not retry relogin\n", | 707 | ": conn_err=0x%08x, do not retry relogin\n", |
708 | conn_err)); | 708 | conn_err)); |
709 | relogin = 0; | 709 | relogin = 0; |
710 | } | 710 | } |
711 | 711 | ||
@@ -736,13 +736,13 @@ static int qla4xxx_build_ddb_list(struct scsi_qla_host *ha) | |||
736 | fw_ddb_entry = dma_alloc_coherent(&ha->pdev->dev, sizeof(*fw_ddb_entry), | 736 | fw_ddb_entry = dma_alloc_coherent(&ha->pdev->dev, sizeof(*fw_ddb_entry), |
737 | &fw_ddb_entry_dma, GFP_KERNEL); | 737 | &fw_ddb_entry_dma, GFP_KERNEL); |
738 | if (fw_ddb_entry == NULL) { | 738 | if (fw_ddb_entry == NULL) { |
739 | DEBUG2(dev_info(&ha->pdev->dev, "%s: DMA alloc failed\n", | 739 | DEBUG2(ql4_printk(KERN_INFO, ha, "%s: DMA alloc failed\n", |
740 | __func__)); | 740 | __func__)); |
741 | 741 | ||
742 | goto exit_build_ddb_list_no_free; | 742 | goto exit_build_ddb_list_no_free; |
743 | } | 743 | } |
744 | 744 | ||
745 | dev_info(&ha->pdev->dev, "Initializing DDBs ...\n"); | 745 | ql4_printk(KERN_INFO, ha, "Initializing DDBs ...\n"); |
746 | for (fw_ddb_index = 0; fw_ddb_index < MAX_DDB_ENTRIES; | 746 | for (fw_ddb_index = 0; fw_ddb_index < MAX_DDB_ENTRIES; |
747 | fw_ddb_index = next_fw_ddb_index) { | 747 | fw_ddb_index = next_fw_ddb_index) { |
748 | /* First, let's see if a device exists here */ | 748 | /* First, let's see if a device exists here */ |
@@ -826,7 +826,7 @@ next_one: | |||
826 | } | 826 | } |
827 | 827 | ||
828 | status = QLA_SUCCESS; | 828 | status = QLA_SUCCESS; |
829 | dev_info(&ha->pdev->dev, "DDB list done..\n"); | 829 | ql4_printk(KERN_INFO, ha, "DDB list done..\n"); |
830 | 830 | ||
831 | exit_build_ddb_list: | 831 | exit_build_ddb_list: |
832 | dma_free_coherent(&ha->pdev->dev, sizeof(*fw_ddb_entry), fw_ddb_entry, | 832 | dma_free_coherent(&ha->pdev->dev, sizeof(*fw_ddb_entry), fw_ddb_entry, |
@@ -1080,17 +1080,17 @@ static int qla4xxx_config_nvram(struct scsi_qla_host *ha) | |||
1080 | } | 1080 | } |
1081 | 1081 | ||
1082 | /* Get EEPRom Parameters from NVRAM and validate */ | 1082 | /* Get EEPRom Parameters from NVRAM and validate */ |
1083 | dev_info(&ha->pdev->dev, "Configuring NVRAM ...\n"); | 1083 | ql4_printk(KERN_INFO, ha, "Configuring NVRAM ...\n"); |
1084 | if (qla4xxx_is_nvram_configuration_valid(ha) == QLA_SUCCESS) { | 1084 | if (qla4xxx_is_nvram_configuration_valid(ha) == QLA_SUCCESS) { |
1085 | spin_lock_irqsave(&ha->hardware_lock, flags); | 1085 | spin_lock_irqsave(&ha->hardware_lock, flags); |
1086 | extHwConfig.Asuint32_t = | 1086 | extHwConfig.Asuint32_t = |
1087 | rd_nvram_word(ha, eeprom_ext_hw_conf_offset(ha)); | 1087 | rd_nvram_word(ha, eeprom_ext_hw_conf_offset(ha)); |
1088 | spin_unlock_irqrestore(&ha->hardware_lock, flags); | 1088 | spin_unlock_irqrestore(&ha->hardware_lock, flags); |
1089 | } else { | 1089 | } else { |
1090 | dev_warn(&ha->pdev->dev, | 1090 | ql4_printk(KERN_WARNING, ha, |
1091 | "scsi%ld: %s: EEProm checksum invalid. " | 1091 | "scsi%ld: %s: EEProm checksum invalid. " |
1092 | "Please update your EEPROM\n", ha->host_no, | 1092 | "Please update your EEPROM\n", ha->host_no, |
1093 | __func__); | 1093 | __func__); |
1094 | 1094 | ||
1095 | /* Attempt to set defaults */ | 1095 | /* Attempt to set defaults */ |
1096 | if (is_qla4010(ha)) | 1096 | if (is_qla4010(ha)) |
@@ -1128,7 +1128,7 @@ void qla4xxx_pci_config(struct scsi_qla_host *ha) | |||
1128 | uint16_t w; | 1128 | uint16_t w; |
1129 | int status; | 1129 | int status; |
1130 | 1130 | ||
1131 | dev_info(&ha->pdev->dev, "Configuring PCI space...\n"); | 1131 | ql4_printk(KERN_INFO, ha, "Configuring PCI space...\n"); |
1132 | 1132 | ||
1133 | pci_set_master(ha->pdev); | 1133 | pci_set_master(ha->pdev); |
1134 | status = pci_set_mwi(ha->pdev); | 1134 | status = pci_set_mwi(ha->pdev); |
@@ -1150,7 +1150,7 @@ static int qla4xxx_start_firmware_from_flash(struct scsi_qla_host *ha) | |||
1150 | unsigned long flags; | 1150 | unsigned long flags; |
1151 | uint32_t mbox_status; | 1151 | uint32_t mbox_status; |
1152 | 1152 | ||
1153 | dev_info(&ha->pdev->dev, "Starting firmware ...\n"); | 1153 | ql4_printk(KERN_INFO, ha, "Starting firmware ...\n"); |
1154 | 1154 | ||
1155 | /* | 1155 | /* |
1156 | * Start firmware from flash ROM | 1156 | * Start firmware from flash ROM |
@@ -1569,7 +1569,7 @@ int qla4xxx_process_ddb_changed(struct scsi_qla_host *ha, uint32_t fw_ddb_index, | |||
1569 | } else { | 1569 | } else { |
1570 | /* Device went away, mark device missing */ | 1570 | /* Device went away, mark device missing */ |
1571 | if (atomic_read(&ddb_entry->state) == DDB_STATE_ONLINE) { | 1571 | if (atomic_read(&ddb_entry->state) == DDB_STATE_ONLINE) { |
1572 | DEBUG2(dev_info(&ha->pdev->dev, "%s mark missing " | 1572 | DEBUG2(ql4_printk(KERN_INFO, ha, "%s mark missing " |
1573 | "ddb_entry 0x%p sess 0x%p conn 0x%p\n", | 1573 | "ddb_entry 0x%p sess 0x%p conn 0x%p\n", |
1574 | __func__, ddb_entry, | 1574 | __func__, ddb_entry, |
1575 | ddb_entry->sess, ddb_entry->conn)); | 1575 | ddb_entry->sess, ddb_entry->conn)); |