diff options
author | James Smart <james.smart@emulex.com> | 2012-03-01 22:35:58 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-03-27 03:26:31 -0400 |
commit | 8fcb8acd6cb1529c596c274a6d375cbe9a134dcb (patch) | |
tree | b16ef4cf2b68f4664e10c8f170e851d648254cbf | |
parent | 80c17849209e8773de122e58512c16c3fae3e29a (diff) |
[SCSI] lpfc 8.3.30: Fix SLI4 driver module load and unload
Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com>
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 1afa50f54b87..1ce36bc9c56b 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -5821,10 +5821,9 @@ lpfc_sli4_post_status_check(struct lpfc_hba *phba) | |||
5821 | readl(phba->sli4_hba.u.if_type2. | 5821 | readl(phba->sli4_hba.u.if_type2. |
5822 | ERR2regaddr); | 5822 | ERR2regaddr); |
5823 | lpfc_printf_log(phba, KERN_ERR, LOG_INIT, | 5823 | lpfc_printf_log(phba, KERN_ERR, LOG_INIT, |
5824 | "2888 Port Error Detected " | 5824 | "2888 Unrecoverable port error " |
5825 | "during POST: " | 5825 | "following POST: port status reg " |
5826 | "port status reg 0x%x, " | 5826 | "0x%x, port_smphr reg 0x%x, " |
5827 | "port_smphr reg 0x%x, " | ||
5828 | "error 1=0x%x, error 2=0x%x\n", | 5827 | "error 1=0x%x, error 2=0x%x\n", |
5829 | reg_data.word0, | 5828 | reg_data.word0, |
5830 | portsmphr_reg.word0, | 5829 | portsmphr_reg.word0, |
@@ -7279,7 +7278,8 @@ lpfc_pci_function_reset(struct lpfc_hba *phba) | |||
7279 | LPFC_SLIPORT_INIT_PORT); | 7278 | LPFC_SLIPORT_INIT_PORT); |
7280 | writel(reg_data.word0, phba->sli4_hba.u.if_type2. | 7279 | writel(reg_data.word0, phba->sli4_hba.u.if_type2. |
7281 | CTRLregaddr); | 7280 | CTRLregaddr); |
7282 | 7281 | /* flush */ | |
7282 | readl(phba->sli4_hba.u.if_type2.STATUSregaddr); | ||
7283 | /* | 7283 | /* |
7284 | * Poll the Port Status Register and wait for RDY for | 7284 | * Poll the Port Status Register and wait for RDY for |
7285 | * up to 10 seconds. If the port doesn't respond, treat | 7285 | * up to 10 seconds. If the port doesn't respond, treat |
@@ -7317,11 +7317,10 @@ lpfc_pci_function_reset(struct lpfc_hba *phba) | |||
7317 | phba->work_status[1] = readl( | 7317 | phba->work_status[1] = readl( |
7318 | phba->sli4_hba.u.if_type2.ERR2regaddr); | 7318 | phba->sli4_hba.u.if_type2.ERR2regaddr); |
7319 | lpfc_printf_log(phba, KERN_ERR, LOG_INIT, | 7319 | lpfc_printf_log(phba, KERN_ERR, LOG_INIT, |
7320 | "2890 Port Error Detected " | 7320 | "2890 Port error detected during port " |
7321 | "during Port Reset: " | 7321 | "reset(%d): port status reg 0x%x, " |
7322 | "port status reg 0x%x, " | ||
7323 | "error 1=0x%x, error 2=0x%x\n", | 7322 | "error 1=0x%x, error 2=0x%x\n", |
7324 | reg_data.word0, | 7323 | num_resets, reg_data.word0, |
7325 | phba->work_status[0], | 7324 | phba->work_status[0], |
7326 | phba->work_status[1]); | 7325 | phba->work_status[1]); |
7327 | rc = -ENODEV; | 7326 | rc = -ENODEV; |