提交 94d6a2b3 编写于 作者: A Andrew Vasquez 提交者: James Bottomley

[SCSI] qla2xxx: Fix issue where final flash-segment updates were falling into...

[SCSI] qla2xxx: Fix issue where final flash-segment updates were falling into the slow-path write handler.

Original implementation would not use the burst-write mechanisms
for requests equal to OPTROM_BURST_DWORDS transfer dwords.
Signed-off-by: NAndrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 2c96d8d0
...@@ -643,7 +643,7 @@ qla24xx_write_flash_data(scsi_qla_host_t *ha, uint32_t *dwptr, uint32_t faddr, ...@@ -643,7 +643,7 @@ qla24xx_write_flash_data(scsi_qla_host_t *ha, uint32_t *dwptr, uint32_t faddr,
} }
/* Go with burst-write. */ /* Go with burst-write. */
if (optrom && (liter + OPTROM_BURST_DWORDS) < dwords) { if (optrom && (liter + OPTROM_BURST_DWORDS) <= dwords) {
/* Copy data to DMA'ble buffer. */ /* Copy data to DMA'ble buffer. */
for (miter = 0, s = optrom, d = dwptr; for (miter = 0, s = optrom, d = dwptr;
miter < OPTROM_BURST_DWORDS; miter++, s++, d++) miter < OPTROM_BURST_DWORDS; miter++, s++, d++)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册