提交 ba834582 编写于 作者: J Jing Huang 提交者: James Bottomley

[SCSI] bfa: add ioc state checking

This patch adds ioc state checking while enabling a port.
Signed-off-by: NJing Huang <huangj@brocade.com>
Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
上级 604158ad
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册