diff options
author | Karen Higgins <karen.higgins@qlogic.com> | 2010-07-10 05:21:17 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-28 10:05:24 -0400 |
commit | bb6f7d5b71356be560ea84dd5a721f083d3a9e8e (patch) | |
tree | 4c5bf50011af5ee622e9386bab5825d94dd62904 /drivers/scsi/qla4xxx | |
parent | c2660df310a3c445194748b54f51b7224639e742 (diff) |
[SCSI] qla4xxx: wait for device_ready before device discovery
Signed-off-by: Karen Higgins <karen.higgins@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla4xxx')
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_init.c b/drivers/scsi/qla4xxx/ql4_init.c index 5fc19c44bada..e6b73b9fcc5a 100644 --- a/drivers/scsi/qla4xxx/ql4_init.c +++ b/drivers/scsi/qla4xxx/ql4_init.c | |||
@@ -991,6 +991,9 @@ static int qla4xxx_initialize_ddb_list(struct scsi_qla_host *ha) | |||
991 | 991 | ||
992 | qla4xxx_flush_AENS(ha); | 992 | qla4xxx_flush_AENS(ha); |
993 | 993 | ||
994 | /* Wait for an AEN */ | ||
995 | qla4xxx_devices_ready(ha); | ||
996 | |||
994 | /* | 997 | /* |
995 | * First perform device discovery for active | 998 | * First perform device discovery for active |
996 | * fw ddb indexes and build | 999 | * fw ddb indexes and build |
@@ -999,9 +1002,6 @@ static int qla4xxx_initialize_ddb_list(struct scsi_qla_host *ha) | |||
999 | if ((status = qla4xxx_build_ddb_list(ha)) == QLA_ERROR) | 1002 | if ((status = qla4xxx_build_ddb_list(ha)) == QLA_ERROR) |
1000 | return status; | 1003 | return status; |
1001 | 1004 | ||
1002 | /* Wait for an AEN */ | ||
1003 | qla4xxx_devices_ready(ha); | ||
1004 | |||
1005 | /* | 1005 | /* |
1006 | * Targets can come online after the inital discovery, so processing | 1006 | * Targets can come online after the inital discovery, so processing |
1007 | * the aens here will catch them. | 1007 | * the aens here will catch them. |