[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:
Jing Huang 2010-07-08 20:00:24 -07:00 committed by James Bottomley
parent 604158ade0
commit ba8345821a

View File

@ -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