Commit ba834582 authored by Jing Huang's avatar Jing Huang Committed by James Bottomley

[SCSI] bfa: add ioc state checking

This patch adds ioc state checking while enabling a port.
Signed-off-by: default avatarJing Huang <huangj@brocade.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 604158ad
...@@ -1393,6 +1393,9 @@ bfa_fcport_enable(struct bfa_s *bfa) ...@@ -1393,6 +1393,9 @@ bfa_fcport_enable(struct bfa_s *bfa)
return BFA_STATUS_PBC; return BFA_STATUS_PBC;
} }
if (bfa_ioc_is_disabled(&bfa->ioc))
return BFA_STATUS_IOC_DISABLED;
if (fcport->diag_busy) if (fcport->diag_busy)
return BFA_STATUS_DIAG_BUSY; return BFA_STATUS_DIAG_BUSY;
else if (bfa_sm_cmp_state else if (bfa_sm_cmp_state
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment