diff options
author | Shyam Sundar <shyam.sundar@qlogic.com> | 2008-10-24 18:13:46 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-11-05 12:41:49 -0500 |
commit | 680d7db88ace53c673e1c437c9b6abcc053e8d6f (patch) | |
tree | 03e2c4f62473d3025ca01508d06a655372ddda94 /drivers/scsi | |
parent | 737faece278ffec78612675bc378a4258d8293bb (diff) |
[SCSI] qla2xxx: Do not honour max_vports from firmware for 2G ISPs and below.
For 23XX ISPs, max_vports may return an invalid value.
Do not honour it.
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 2 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mbx.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index ecf91ad40272..4218f20f5ed5 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -964,7 +964,6 @@ qla2x00_setup_chip(scsi_qla_host_t *ha) | |||
964 | &ha->fw_minor_version, | 964 | &ha->fw_minor_version, |
965 | &ha->fw_subminor_version, | 965 | &ha->fw_subminor_version, |
966 | &ha->fw_attributes, &ha->fw_memory_size); | 966 | &ha->fw_attributes, &ha->fw_memory_size); |
967 | qla2x00_resize_request_q(ha); | ||
968 | ha->flags.npiv_supported = 0; | 967 | ha->flags.npiv_supported = 0; |
969 | if ((IS_QLA24XX(ha) || IS_QLA25XX(ha) || | 968 | if ((IS_QLA24XX(ha) || IS_QLA25XX(ha) || |
970 | IS_QLA84XX(ha)) && | 969 | IS_QLA84XX(ha)) && |
@@ -976,6 +975,7 @@ qla2x00_setup_chip(scsi_qla_host_t *ha) | |||
976 | ha->max_npiv_vports = | 975 | ha->max_npiv_vports = |
977 | MIN_MULTI_ID_FABRIC - 1; | 976 | MIN_MULTI_ID_FABRIC - 1; |
978 | } | 977 | } |
978 | qla2x00_resize_request_q(ha); | ||
979 | 979 | ||
980 | if (ql2xallocfwdump) | 980 | if (ql2xallocfwdump) |
981 | qla2x00_alloc_fw_dump(ha); | 981 | qla2x00_alloc_fw_dump(ha); |
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index 36bc6851e23d..3402746ec128 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c | |||
@@ -1964,7 +1964,7 @@ qla2x00_get_resource_cnts(scsi_qla_host_t *ha, uint16_t *cur_xchg_cnt, | |||
1964 | *cur_iocb_cnt = mcp->mb[7]; | 1964 | *cur_iocb_cnt = mcp->mb[7]; |
1965 | if (orig_iocb_cnt) | 1965 | if (orig_iocb_cnt) |
1966 | *orig_iocb_cnt = mcp->mb[10]; | 1966 | *orig_iocb_cnt = mcp->mb[10]; |
1967 | if (max_npiv_vports) | 1967 | if (ha->flags.npiv_supported && max_npiv_vports) |
1968 | *max_npiv_vports = mcp->mb[11]; | 1968 | *max_npiv_vports = mcp->mb[11]; |
1969 | } | 1969 | } |
1970 | 1970 | ||