diff options
author | Santosh Vernekar <santosh.vernekar@qlogic.com> | 2009-08-25 14:36:16 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-09-12 10:35:20 -0400 |
commit | 8474f3a02a18e18459663ad88951822c62a45068 (patch) | |
tree | b002647f04d0a2711d84c0f9dafba754a3ce36f7 /drivers/scsi/qla2xxx/qla_isr.c | |
parent | e7a51997dad4e17395be1209970e18d2e9305b24 (diff) |
[SCSI] qla2xxx: Correctly set FCF_TAPE_PRESENT flag based on scsi-device.
In fabric-login based on iop BIT_8 firmware notifies presence of
a FCP2 device and not necessarily a TAPE device. So instead of
setting FCF_TAPE_PRESENT flag there we set it using
scsi_device->type after mid-layer scan recognises "type" of the
device.
It also adds a new flag FCF_FCP2_DEVICE for any future use.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
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_isr.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_isr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index c0fec6914b96..27db6246ca3e 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c | |||
@@ -1013,7 +1013,7 @@ qla2x00_mbx_iocb_entry(scsi_qla_host_t *vha, struct req_que *req, | |||
1013 | 1013 | ||
1014 | data[0] = MBS_COMMAND_COMPLETE; | 1014 | data[0] = MBS_COMMAND_COMPLETE; |
1015 | if (lio->ctx.type == SRB_LOGIN_CMD && le16_to_cpu(mbx->mb1) & BIT_1) | 1015 | if (lio->ctx.type == SRB_LOGIN_CMD && le16_to_cpu(mbx->mb1) & BIT_1) |
1016 | fcport->flags |= FCF_TAPE_PRESENT; | 1016 | fcport->flags |= FCF_FCP2_DEVICE; |
1017 | 1017 | ||
1018 | goto done_post_logio_done_work; | 1018 | goto done_post_logio_done_work; |
1019 | } | 1019 | } |
@@ -1112,7 +1112,7 @@ qla24xx_logio_entry(scsi_qla_host_t *vha, struct req_que *req, | |||
1112 | if (iop[0] & BIT_4) { | 1112 | if (iop[0] & BIT_4) { |
1113 | fcport->port_type = FCT_TARGET; | 1113 | fcport->port_type = FCT_TARGET; |
1114 | if (iop[0] & BIT_8) | 1114 | if (iop[0] & BIT_8) |
1115 | fcport->flags |= FCF_TAPE_PRESENT; | 1115 | fcport->flags |= FCF_FCP2_DEVICE; |
1116 | } | 1116 | } |
1117 | if (iop[0] & BIT_5) | 1117 | if (iop[0] & BIT_5) |
1118 | fcport->port_type = FCT_INITIATOR; | 1118 | fcport->port_type = FCT_INITIATOR; |