summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/ms.c
diff options
context:
space:
mode:
authorKrishna Gudipati <kgudipat@brocade.com>2010-03-05 19:38:17 -0800
committerJames Bottomley <James.Bottomley@suse.de>2010-03-07 13:12:04 +0530
commit25e2934c26f5efaea156c9fda4457d01a8bb44e1 (patch)
tree85329bd822e098c0a1b5fa1a29b4fc4fb4000f4d /drivers/scsi/bfa/ms.c
parentca8b4327e405820966971236224db0e0724b5673 (diff)
downloadblackbird-op-linux-25e2934c26f5efaea156c9fda4457d01a8bb44e1.tar.gz
blackbird-op-linux-25e2934c26f5efaea156c9fda4457d01a8bb44e1.zip
[SCSI] bfa: FCS and include file changes.
MS module did not invoke fdmi offline in all cases, call fdmi offline when ms module receives a port offline, so that fdmi offline is from one place in the ms module. Make changes to handle 10G speed in the conversion routine. Replaced the usage of bfa_adapter_attr_s struct with specific API's. Signed-off-by: Krishna Gudipati <kgudipat@brocade.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/ms.c')
-rw-r--r--drivers/scsi/bfa/ms.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/bfa/ms.c b/drivers/scsi/bfa/ms.c
index e6db5fd301f2..5e8c8dee6c97 100644
--- a/drivers/scsi/bfa/ms.c
+++ b/drivers/scsi/bfa/ms.c
@@ -230,10 +230,6 @@ bfa_fcs_port_ms_sm_online(struct bfa_fcs_port_ms_s *ms,
switch (event) {
case MSSM_EVENT_PORT_OFFLINE:
bfa_sm_set_state(ms, bfa_fcs_port_ms_sm_offline);
- /*
- * now invoke MS related sub-modules
- */
- bfa_fcs_port_fdmi_offline(ms);
break;
case MSSM_EVENT_PORT_FABRIC_RSCN:
@@ -735,6 +731,7 @@ bfa_fcs_port_ms_offline(struct bfa_fcs_port_s *port)
ms->port = port;
bfa_sm_send_event(ms, MSSM_EVENT_PORT_OFFLINE);
+ bfa_fcs_port_fdmi_offline(ms);
}
void
OpenPOWER on IntegriCloud