OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f08b725
)
[SCSI] qla2xxx: Perform fast mailbox read of flash regardless of size nor address...
author
Andrew Vasquez
<andrew.vasquez@qlogic.com>
Tue, 12 Jan 2010 20:59:49 +0000
(12:59 -0800)
committer
James Bottomley
<James.Bottomley@suse.de>
Sun, 17 Jan 2010 18:36:31 +0000
(12:36 -0600)
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla2xxx/qla_sup.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/qla2xxx/qla_sup.c
b/drivers/scsi/qla2xxx/qla_sup.c
index
010e69b
..
371dc89
100644
(file)
--- a/
drivers/scsi/qla2xxx/qla_sup.c
+++ b/
drivers/scsi/qla2xxx/qla_sup.c
@@
-2292,11
+2292,14
@@
qla25xx_read_optrom_data(struct scsi_qla_host *vha, uint8_t *buf,
uint32_t faddr, left, burst;
struct qla_hw_data *ha = vha->hw;
+ if (IS_QLA25XX(ha) || IS_QLA81XX(ha))
+ goto try_fast;
if (offset & 0xfff)
goto slow_read;
if (length < OPTROM_BURST_SIZE)
goto slow_read;
+try_fast:
optrom = dma_alloc_coherent(&ha->pdev->dev, OPTROM_BURST_SIZE,
&optrom_dma, GFP_KERNEL);
if (!optrom) {