aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa
diff options
context:
space:
mode:
authorJing Huang <huangj@brocade.com>2010-07-08 23:00:24 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 13:04:23 -0400
commitba8345821ac34d1630e99db7d4835db8ab20f50b (patch)
treec02042fa6f8edbaa6f2b5c250437fa144e245ddf /drivers/scsi/bfa
parent604158ade0d5378622541232a007bf975c8bd03f (diff)
[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>
Diffstat (limited to 'drivers/scsi/bfa')
-rw-r--r--drivers/scsi/bfa/bfa_fcport.c3
1 files changed, 3 insertions, 0 deletions
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)
1393 return BFA_STATUS_PBC; 1393 return BFA_STATUS_PBC;
1394 } 1394 }
1395 1395
1396 if (bfa_ioc_is_disabled(&bfa->ioc))
1397 return BFA_STATUS_IOC_DISABLED;
1398
1396 if (fcport->diag_busy) 1399 if (fcport->diag_busy)
1397 return BFA_STATUS_DIAG_BUSY; 1400 return BFA_STATUS_DIAG_BUSY;
1398 else if (bfa_sm_cmp_state 1401 else if (bfa_sm_cmp_state