Skip to content

Commit

Permalink
[SCSI] bfa: add ioc state checking
Browse files Browse the repository at this point in the history
This patch adds ioc state checking while enabling a port.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Jing Huang authored and James Bottomley committed Jul 27, 2010
1 parent 604158a commit ba83458
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/scsi/bfa/bfa_fcport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,9 @@ bfa_fcport_enable(struct bfa_s *bfa)
return BFA_STATUS_PBC;
}

if (bfa_ioc_is_disabled(&bfa->ioc))
return BFA_STATUS_IOC_DISABLED;

if (fcport->diag_busy)
return BFA_STATUS_DIAG_BUSY;
else if (bfa_sm_cmp_state
Expand Down

0 comments on commit ba83458

Please sign in to comment.