diff options
author | Joe Carnuccio <joe.carnuccio@qlogic.com> | 2007-09-20 17:07:35 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 14:49:42 -0400 |
commit | b7cc176c9eb3aa6989ac099efd8bdd6d0eaa784a (patch) | |
tree | d0fb43580ecc2c84625b7bc7a3d86d2e72853a4c /drivers/scsi/qla2xxx/qla_sup.c | |
parent | 338c9161e406591afbc1a6635a68d3b6d5362e00 (diff) |
[SCSI] qla2xxx: Allow region-based flash-part accesses.
Additional cleanups and
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_sup.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_sup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_sup.c b/drivers/scsi/qla2xxx/qla_sup.c index ad3d1de51d8c..40b059fc1981 100644 --- a/drivers/scsi/qla2xxx/qla_sup.c +++ b/drivers/scsi/qla2xxx/qla_sup.c | |||
@@ -559,7 +559,7 @@ qla24xx_write_flash_data(scsi_qla_host_t *ha, uint32_t *dwptr, uint32_t faddr, | |||
559 | ret = QLA_SUCCESS; | 559 | ret = QLA_SUCCESS; |
560 | 560 | ||
561 | /* Prepare burst-capable write on supported ISPs. */ | 561 | /* Prepare burst-capable write on supported ISPs. */ |
562 | if (IS_QLA25XX(ha) && !(faddr & ~OPTROM_BURST_SIZE) && | 562 | if (IS_QLA25XX(ha) && !(faddr & 0xfff) && |
563 | dwords > OPTROM_BURST_DWORDS) { | 563 | dwords > OPTROM_BURST_DWORDS) { |
564 | optrom = dma_alloc_coherent(&ha->pdev->dev, OPTROM_BURST_SIZE, | 564 | optrom = dma_alloc_coherent(&ha->pdev->dev, OPTROM_BURST_SIZE, |
565 | &optrom_dma, GFP_KERNEL); | 565 | &optrom_dma, GFP_KERNEL); |
@@ -1824,7 +1824,7 @@ qla25xx_read_optrom_data(struct scsi_qla_host *ha, uint8_t *buf, | |||
1824 | uint8_t *pbuf; | 1824 | uint8_t *pbuf; |
1825 | uint32_t faddr, left, burst; | 1825 | uint32_t faddr, left, burst; |
1826 | 1826 | ||
1827 | if (offset & ~OPTROM_BURST_SIZE) | 1827 | if (offset & 0xfff) |
1828 | goto slow_read; | 1828 | goto slow_read; |
1829 | if (length < OPTROM_BURST_SIZE) | 1829 | if (length < OPTROM_BURST_SIZE) |
1830 | goto slow_read; | 1830 | goto slow_read; |