[SCSI] bfa: add ioc state checking
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>
This commit is contained in:
parent
604158ade0
commit
ba8345821a
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue