diff options
author | Sawan Chandak <sawan.chandak@qlogic.com> | 2015-04-09 15:00:06 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-04-10 11:42:58 -0400 |
commit | ded6411fd88267510dcee6d6c29cfd0bd82d4f0e (patch) | |
tree | 3dd1aa9a733cdb0d71bbd2bce5b20d95275d7e4b /drivers/scsi/qla2xxx/qla_def.h | |
parent | e8fb1250ba5898c6c53e0063bbdcc9cadd580797 (diff) |
qla2xxx: Fix virtual port configuration, when switch port is disabled/enabled.
On some vendor switches, when switch port is toggled (down /up),
then in some condition driver tries to configure virtual port,
before FW is actually in ready state to process any commands on wire.
At this time, configuring virtual port can fail. Add fix in driver
to make driver wait, for FW to be ready state before
Signed-off-by: Sawan Chandak <sawan.chandak@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_def.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 9a8aa11cd15f..e86201d3b8c6 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h | |||
@@ -3590,6 +3590,7 @@ typedef struct scsi_qla_host { | |||
3590 | #define VP_BIND_NEEDED 2 | 3590 | #define VP_BIND_NEEDED 2 |
3591 | #define VP_DELETE_NEEDED 3 | 3591 | #define VP_DELETE_NEEDED 3 |
3592 | #define VP_SCR_NEEDED 4 /* State Change Request registration */ | 3592 | #define VP_SCR_NEEDED 4 /* State Change Request registration */ |
3593 | #define VP_CONFIG_OK 5 /* Flag to cfg VP, if FW is ready */ | ||
3593 | atomic_t vp_state; | 3594 | atomic_t vp_state; |
3594 | #define VP_OFFLINE 0 | 3595 | #define VP_OFFLINE 0 |
3595 | #define VP_ACTIVE 1 | 3596 | #define VP_ACTIVE 1 |