aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_sli.c
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2010-02-26 14:13:54 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-03-03 08:38:58 -0500
commite40a02c12581f710877da372b5d7e15b68a1c5c3 (patch)
treee26d0d655a8179553fbf05c7efab0da083448377 /drivers/scsi/lpfc/lpfc_sli.c
parent9f1177a3f8eee22427eb97e6e00b62ff0be2871f (diff)
[SCSI] lpfc 8.3.10: Fix user interface issues
- Add Logging message for critial errors. - Remove unused variable from lpfc_nodev_tmo_show - Update supress_link_up parameter with #define values. Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_sli.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_sli.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c
index d51ee7e3273..49bed3e8c95 100644
--- a/drivers/scsi/lpfc/lpfc_sli.c
+++ b/drivers/scsi/lpfc/lpfc_sli.c
@@ -3091,6 +3091,12 @@ lpfc_sli_brdready_s3(struct lpfc_hba *phba, uint32_t mask)
3091 3091
3092 /* Check to see if any errors occurred during init */ 3092 /* Check to see if any errors occurred during init */
3093 if ((status & HS_FFERM) || (i >= 20)) { 3093 if ((status & HS_FFERM) || (i >= 20)) {
3094 lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
3095 "2751 Adapter failed to restart, "
3096 "status reg x%x, FW Data: A8 x%x AC x%x\n",
3097 status,
3098 readl(phba->MBslimaddr + 0xa8),
3099 readl(phba->MBslimaddr + 0xac));
3094 phba->link_state = LPFC_HBA_ERROR; 3100 phba->link_state = LPFC_HBA_ERROR;
3095 retval = 1; 3101 retval = 1;
3096 } 3102 }
@@ -3278,6 +3284,9 @@ lpfc_sli_brdkill(struct lpfc_hba *phba)
3278 if (retval != MBX_SUCCESS) { 3284 if (retval != MBX_SUCCESS) {
3279 if (retval != MBX_BUSY) 3285 if (retval != MBX_BUSY)
3280 mempool_free(pmb, phba->mbox_mem_pool); 3286 mempool_free(pmb, phba->mbox_mem_pool);
3287 lpfc_printf_log(phba, KERN_ERR, LOG_SLI,
3288 "2752 KILL_BOARD command failed retval %d\n",
3289 retval);
3281 spin_lock_irq(&phba->hbalock); 3290 spin_lock_irq(&phba->hbalock);
3282 phba->link_flag &= ~LS_IGNORE_ERATT; 3291 phba->link_flag &= ~LS_IGNORE_ERATT;
3283 spin_unlock_irq(&phba->hbalock); 3292 spin_unlock_irq(&phba->hbalock);
@@ -4035,7 +4044,7 @@ lpfc_sli_hba_setup(struct lpfc_hba *phba)
4035 4044
4036lpfc_sli_hba_setup_error: 4045lpfc_sli_hba_setup_error:
4037 phba->link_state = LPFC_HBA_ERROR; 4046 phba->link_state = LPFC_HBA_ERROR;
4038 lpfc_printf_log(phba, KERN_INFO, LOG_INIT, 4047 lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
4039 "0445 Firmware initialization failed\n"); 4048 "0445 Firmware initialization failed\n");
4040 return rc; 4049 return rc;
4041} 4050}