Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292963
b: refs/heads/master
c: e8fb00e
h: refs/heads/master
i:
  292961: 3afd50e
  292959: 76be26c
v: v3
  • Loading branch information
Manish Rangankar authored and James Bottomley committed Feb 19, 2012
1 parent 2fb28e0 commit a2a9ec7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 20e835b43f3f81e29f34e06099a47285ffebe688
refs/heads/master: e8fb00e068e057ad2fc28fd0d398ff028bc540ff
26 changes: 12 additions & 14 deletions trunk/drivers/scsi/qla4xxx/ql4_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -3393,9 +3393,8 @@ static int get_fw_boot_info(struct scsi_qla_host *ha, uint16_t ddb_index[])
/* Check Boot Mode */
val = rd_nvram_byte(ha, addr);
if (!(val & 0x07)) {
DEBUG2(ql4_printk(KERN_ERR, ha,
"%s: Failed Boot options : 0x%x\n",
__func__, val));
DEBUG2(ql4_printk(KERN_INFO, ha, "%s: Adapter boot "
"options : 0x%x\n", __func__, val));
ret = QLA_ERROR;
goto exit_boot_info;
}
Expand Down Expand Up @@ -3440,9 +3439,8 @@ static int get_fw_boot_info(struct scsi_qla_host *ha, uint16_t ddb_index[])
}
/* Check Boot Mode */
if (!(buf[1] & 0x07)) {
DEBUG2(ql4_printk(KERN_INFO, ha,
"Failed: Boot options : 0x%x\n",
buf[1]));
DEBUG2(ql4_printk(KERN_INFO, ha, "Firmware boot options"
" : 0x%x\n", buf[1]));
ret = QLA_ERROR;
goto exit_boot_info_free;
}
Expand Down Expand Up @@ -3548,8 +3546,8 @@ static int qla4xxx_get_boot_target(struct scsi_qla_host *ha,

if (qla4xxx_bootdb_by_index(ha, fw_ddb_entry,
fw_ddb_entry_dma, ddb_index)) {
DEBUG2(ql4_printk(KERN_ERR, ha,
"%s: Flash DDB read Failed\n", __func__));
DEBUG2(ql4_printk(KERN_INFO, ha, "%s: No Flash DDB found at "
"index [%d]\n", __func__, ddb_index));
ret = QLA_ERROR;
goto exit_boot_target;
}
Expand Down Expand Up @@ -3627,8 +3625,8 @@ static int qla4xxx_get_boot_info(struct scsi_qla_host *ha)
ddb_index[1] = 0xffff;
ret = get_fw_boot_info(ha, ddb_index);
if (ret != QLA_SUCCESS) {
DEBUG2(ql4_printk(KERN_ERR, ha,
"%s: Failed to set boot info.\n", __func__));
DEBUG2(ql4_printk(KERN_INFO, ha,
"%s: No boot target configured.\n", __func__));
return ret;
}

Expand All @@ -3641,8 +3639,8 @@ static int qla4xxx_get_boot_info(struct scsi_qla_host *ha)
rval = qla4xxx_get_boot_target(ha, &(ha->boot_tgt.boot_pri_sess),
ddb_index[0]);
if (rval != QLA_SUCCESS) {
DEBUG2(ql4_printk(KERN_ERR, ha, "%s: Failed to get "
"primary target\n", __func__));
DEBUG2(ql4_printk(KERN_INFO, ha, "%s: Primary boot target not "
"configured\n", __func__));
} else
ret = QLA_SUCCESS;

Expand All @@ -3653,8 +3651,8 @@ static int qla4xxx_get_boot_info(struct scsi_qla_host *ha)
rval = qla4xxx_get_boot_target(ha, &(ha->boot_tgt.boot_sec_sess),
ddb_index[1]);
if (rval != QLA_SUCCESS) {
DEBUG2(ql4_printk(KERN_ERR, ha, "%s: Failed to get "
"secondary target\n", __func__));
DEBUG2(ql4_printk(KERN_INFO, ha, "%s: Secondary boot target not"
" configured\n", __func__));
} else
ret = QLA_SUCCESS;

Expand Down

0 comments on commit a2a9ec7

Please sign in to comment.