All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 9/13] lpfc 8.3.41: Fixed not able to perform PCI function reset when board was not in online mode
@ 2013-07-15 22:34 James Smart
  0 siblings, 0 replies; only message in thread
From: James Smart @ 2013-07-15 22:34 UTC (permalink / raw)
  To: linux-scsi

Fixed not able to perform PCI function reset when board was not in online mode


Signed-off-by: James Smart <james.smart@emulex.com>

 ---

 lpfc_attr.c |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)


diff -upNr a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c
--- a/drivers/scsi/lpfc/lpfc_attr.c	2013-07-15 07:15:26.536056032 -0400
+++ b/drivers/scsi/lpfc/lpfc_attr.c	2013-07-15 07:15:28.343056073 -0400
@@ -741,14 +741,15 @@ lpfc_selective_reset(struct lpfc_hba *ph
 	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;
 
-	status = lpfc_do_offline(phba, LPFC_EVT_OFFLINE);
+	if (!(phba->pport->fc_flag & FC_OFFLINE_MODE)) {
+		status = lpfc_do_offline(phba, LPFC_EVT_OFFLINE);
 
-	if (status != 0)
-		return status;
+		if (status != 0)
+			return status;
+	}
 
 	init_completion(&online_compl);
 	rc = lpfc_workq_post_event(phba, &status, &online_compl,





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-15 22:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-15 22:34 [PATCH 9/13] lpfc 8.3.41: Fixed not able to perform PCI function reset when board was not in online mode James Smart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.