aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_init.c
diff options
context:
space:
mode:
authorChad Dupuis <chad.dupuis@qlogic.com>2011-03-30 14:46:32 -0400
committerJames Bottomley <James.Bottomley@suse.de>2011-05-01 11:14:42 -0400
commitec426e106c410b000ac590b6e776d5a6cd9bccd9 (patch)
tree214b0e2c5935b2ea2143bf993b86799429427f70 /drivers/scsi/qla2xxx/qla_init.c
parenta4f92a32a0fb827f7bd40c69f021cf57d3dc4249 (diff)
[SCSI] qla2xxx: Log fcport state transitions when debug messages are enabled.
Add the inline function qla2x00_set_port_state() so that when a fcport state transition happens we can log the state transition if debug messages are enabled. Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index d31ac9bd81d9..24d2d195d3c6 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -2544,7 +2544,7 @@ qla2x00_alloc_fcport(scsi_qla_host_t *vha, gfp_t flags)
2544 fcport->vp_idx = vha->vp_idx; 2544 fcport->vp_idx = vha->vp_idx;
2545 fcport->port_type = FCT_UNKNOWN; 2545 fcport->port_type = FCT_UNKNOWN;
2546 fcport->loop_id = FC_NO_LOOP_ID; 2546 fcport->loop_id = FC_NO_LOOP_ID;
2547 atomic_set(&fcport->state, FCS_UNCONFIGURED); 2547 qla2x00_set_fcport_state(fcport, FCS_UNCONFIGURED);
2548 fcport->supported_classes = FC_COS_UNSPECIFIED; 2548 fcport->supported_classes = FC_COS_UNSPECIFIED;
2549 2549
2550 return fcport; 2550 return fcport;
@@ -2730,7 +2730,7 @@ qla2x00_configure_local_loop(scsi_qla_host_t *vha)
2730 "loop_id=0x%04x\n", 2730 "loop_id=0x%04x\n",
2731 vha->host_no, fcport->loop_id)); 2731 vha->host_no, fcport->loop_id));
2732 2732
2733 atomic_set(&fcport->state, FCS_DEVICE_LOST); 2733 qla2x00_set_fcport_state(fcport, FCS_DEVICE_LOST);
2734 } 2734 }
2735 } 2735 }
2736 2736
@@ -2942,7 +2942,7 @@ qla2x00_update_fcport(scsi_qla_host_t *vha, fc_port_t *fcport)
2942 qla2x00_iidma_fcport(vha, fcport); 2942 qla2x00_iidma_fcport(vha, fcport);
2943 qla24xx_update_fcport_fcp_prio(vha, fcport); 2943 qla24xx_update_fcport_fcp_prio(vha, fcport);
2944 qla2x00_reg_remote_port(vha, fcport); 2944 qla2x00_reg_remote_port(vha, fcport);
2945 atomic_set(&fcport->state, FCS_ONLINE); 2945 qla2x00_set_fcport_state(fcport, FCS_ONLINE);
2946} 2946}
2947 2947
2948/* 2948/*