aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_init.c
diff options
context:
space:
mode:
authorMichael Hernandez <michael.hernandez@qlogic.com>2009-12-16 00:29:44 -0500
committerJames Bottomley <James.Bottomley@suse.de>2009-12-30 12:09:45 -0500
commit3064ff39b8121acbd731f64d046218ebf3c2f9c0 (patch)
tree8858b9af58db67c662ad3db6b6f3a8c0abd1a256 /drivers/scsi/qla2xxx/qla_init.c
parent44214ab474671e1ab5a860954db413bce52f7e04 (diff)
[SCSI] qla2xxx: Get the link data rate explicitly during device resync.
When the hba port gets logged out of the fabric, or other such transitional state when the physical link is still present, the driver doesn't receive a loop up asyn event (where the link data rate currently gets set). Hence send a explicit mailbox command to get the link rate in such conditions. Signed-off-by: Giridhar Malavali <giridhar.malavali@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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index 73a793539d45..0f7ea6cc02f6 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -2266,6 +2266,8 @@ qla2x00_configure_loop(scsi_qla_host_t *vha)
2266 clear_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); 2266 clear_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags);
2267 clear_bit(RSCN_UPDATE, &vha->dpc_flags); 2267 clear_bit(RSCN_UPDATE, &vha->dpc_flags);
2268 2268
2269 qla2x00_get_data_rate(vha);
2270
2269 /* Determine what we need to do */ 2271 /* Determine what we need to do */
2270 if (ha->current_topology == ISP_CFG_FL && 2272 if (ha->current_topology == ISP_CFG_FL &&
2271 (test_bit(LOCAL_LOOP_UPDATE, &flags))) { 2273 (test_bit(LOCAL_LOOP_UPDATE, &flags))) {