diff options
author | Giridhar Malavali <giridhar.malavali@qlogic.com> | 2010-05-28 18:08:15 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-27 13:01:19 -0400 |
commit | b963752f47c54a29c11acee99e6c99b3c6bb35c5 (patch) | |
tree | f374f820a12ccdd7766722a1de67ada0d34b68e8 /drivers/scsi/qla2xxx/qla_iocb.c | |
parent | 9257aa4963873dcc3b339e2e3c0aba081c83695f (diff) |
[SCSI] qla2xxx: Clear drive active CRB register when not in use.
The CRB drive active register is cleared when driver is unloaded
or when driver enters failed state.
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_iocb.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_iocb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c index 8ef945365412..5d0e99c2b522 100644 --- a/drivers/scsi/qla2xxx/qla_iocb.c +++ b/drivers/scsi/qla2xxx/qla_iocb.c | |||
@@ -1683,7 +1683,7 @@ qla2x00_login_iocb(srb_t *sp, struct mbx_entry *mbx) | |||
1683 | struct srb_iocb *lio = ctx->u.iocb_cmd; | 1683 | struct srb_iocb *lio = ctx->u.iocb_cmd; |
1684 | uint16_t opts; | 1684 | uint16_t opts; |
1685 | 1685 | ||
1686 | mbx->entry_type = MBX_IOCB_TYPE;; | 1686 | mbx->entry_type = MBX_IOCB_TYPE; |
1687 | SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id); | 1687 | SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id); |
1688 | mbx->mb0 = cpu_to_le16(MBC_LOGIN_FABRIC_PORT); | 1688 | mbx->mb0 = cpu_to_le16(MBC_LOGIN_FABRIC_PORT); |
1689 | opts = lio->u.logio.flags & SRB_LOGIN_COND_PLOGI ? BIT_0 : 0; | 1689 | opts = lio->u.logio.flags & SRB_LOGIN_COND_PLOGI ? BIT_0 : 0; |
@@ -1718,7 +1718,7 @@ qla2x00_logout_iocb(srb_t *sp, struct mbx_entry *mbx) | |||
1718 | { | 1718 | { |
1719 | struct qla_hw_data *ha = sp->fcport->vha->hw; | 1719 | struct qla_hw_data *ha = sp->fcport->vha->hw; |
1720 | 1720 | ||
1721 | mbx->entry_type = MBX_IOCB_TYPE;; | 1721 | mbx->entry_type = MBX_IOCB_TYPE; |
1722 | SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id); | 1722 | SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id); |
1723 | mbx->mb0 = cpu_to_le16(MBC_LOGOUT_FABRIC_PORT); | 1723 | mbx->mb0 = cpu_to_le16(MBC_LOGOUT_FABRIC_PORT); |
1724 | mbx->mb1 = HAS_EXTENDED_IDS(ha) ? | 1724 | mbx->mb1 = HAS_EXTENDED_IDS(ha) ? |