diff options
author | Joe Carnuccio <joe.carnuccio@qlogic.com> | 2013-08-27 07:37:49 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-09-03 16:28:06 +0200 |
commit | 5a5c27b611a7e97c05e4317c5b90e68c2ff44ec8 (patch) | |
tree | 40a9a7da88505cd22b4bbbc8c22d9a41b158abd3 /drivers/scsi/qla2xxx/qla_mbx.c | |
parent | [SCSI] qla2xxx: Add loopback IDC-TIME-EXTEND aen handling support. (diff) | |
download | linux-5a5c27b611a7e97c05e4317c5b90e68c2ff44ec8.tar.xz linux-5a5c27b611a7e97c05e4317c5b90e68c2ff44ec8.zip |
[SCSI] qla2xxx: Select link initialization option bits from current operating mode.
Signed-off-by: Joe Carnuccio <joe.carnuccio@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_mbx.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mbx.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index 126188468f8b..c825d1d2ba40 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c @@ -1667,7 +1667,11 @@ qla24xx_link_initialize(scsi_qla_host_t *vha) return QLA_FUNCTION_FAILED; mcp->mb[0] = MBC_LINK_INITIALIZATION; - mcp->mb[1] = BIT_6|BIT_4; + mcp->mb[1] = BIT_4; + if (vha->hw->operating_mode == LOOP) + mcp->mb[1] |= BIT_6; + else + mcp->mb[1] |= BIT_5; mcp->mb[2] = 0; mcp->mb[3] = 0; mcp->out_mb = MBX_3|MBX_2|MBX_1|MBX_0; |