提交 71157c9e 编写于 作者: J James Smart 提交者: James Bottomley

[SCSI] lpfc 8.3.41: Fixed not able to perform PCI function reset when board was not in online mode

Signed-off-by: NJames Smart <james.smart@emulex.com>
Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
上级 7f8c40cf
...@@ -741,14 +741,15 @@ lpfc_selective_reset(struct lpfc_hba *phba) ...@@ -741,14 +741,15 @@ lpfc_selective_reset(struct lpfc_hba *phba)
int status = 0; int status = 0;
int rc; int rc;
if ((!phba->cfg_enable_hba_reset) || if (!phba->cfg_enable_hba_reset)
(phba->pport->fc_flag & FC_OFFLINE_MODE))
return -EACCES; return -EACCES;
if (!(phba->pport->fc_flag & FC_OFFLINE_MODE)) {
status = lpfc_do_offline(phba, LPFC_EVT_OFFLINE); status = lpfc_do_offline(phba, LPFC_EVT_OFFLINE);
if (status != 0) if (status != 0)
return status; return status;
}
init_completion(&online_compl); init_completion(&online_compl);
rc = lpfc_workq_post_event(phba, &status, &online_compl, rc = lpfc_workq_post_event(phba, &status, &online_compl,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册