From ba8345821ac34d1630e99db7d4835db8ab20f50b Mon Sep 17 00:00:00 2001 From: Jing Huang Date: Thu, 8 Jul 2010 20:00:24 -0700 Subject: [SCSI] bfa: add ioc state checking This patch adds ioc state checking while enabling a port. Signed-off-by: Jing Huang Signed-off-by: James Bottomley --- drivers/scsi/bfa/bfa_fcport.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/scsi/bfa') diff --git a/drivers/scsi/bfa/bfa_fcport.c b/drivers/scsi/bfa/bfa_fcport.c index c855e225af16..f0933d8d1eda 100644 --- a/drivers/scsi/bfa/bfa_fcport.c +++ b/drivers/scsi/bfa/bfa_fcport.c @@ -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 -- cgit v1.2.3