diff options
author | Giridhar Malavali <giridhar.malavali@qlogic.com> | 2010-09-03 18:20:48 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-09-05 14:33:00 -0400 |
commit | c9afb9a24db2e673971e790ee4c1bac55708f333 (patch) | |
tree | ee5d03921be66e8e6199654335dc26f5ab1cb1ee /drivers/scsi/qla2xxx/qla_init.c | |
parent | e3b3e6246726cd05950677ed843010b8e8c5884c (diff) |
[SCSI] qla2xxx: Don't issue set or get port param MBC if port is not online.
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index d863ed2619b5..9f71226e0a3e 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -2785,6 +2785,9 @@ qla2x00_iidma_fcport(scsi_qla_host_t *vha, fc_port_t *fcport) | |||
2785 | if (!IS_IIDMA_CAPABLE(ha)) | 2785 | if (!IS_IIDMA_CAPABLE(ha)) |
2786 | return; | 2786 | return; |
2787 | 2787 | ||
2788 | if (atomic_read(&fcport->state) != FCS_ONLINE) | ||
2789 | return; | ||
2790 | |||
2788 | if (fcport->fp_speed == PORT_SPEED_UNKNOWN || | 2791 | if (fcport->fp_speed == PORT_SPEED_UNKNOWN || |
2789 | fcport->fp_speed > ha->link_data_rate) | 2792 | fcport->fp_speed > ha->link_data_rate) |
2790 | return; | 2793 | return; |