Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71157c9e authored by James Smart's avatar James Smart Committed by James Bottomley
Browse files

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

parent 7f8c40cf
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -741,14 +741,15 @@ lpfc_selective_reset(struct lpfc_hba *phba)
	int status = 0;
	int rc;

	if ((!phba->cfg_enable_hba_reset) ||
	    (phba->pport->fc_flag & FC_OFFLINE_MODE))
	if (!phba->cfg_enable_hba_reset)
		return -EACCES;

	if (!(phba->pport->fc_flag & FC_OFFLINE_MODE)) {
		status = lpfc_do_offline(phba, LPFC_EVT_OFFLINE);

		if (status != 0)
			return status;
	}

	init_completion(&online_compl);
	rc = lpfc_workq_post_event(phba, &status, &online_compl,