Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180001
b: refs/heads/master
c: 368bbe0
h: refs/heads/master
i:
  179999: 0f20d0d
v: v3
  • Loading branch information
Andrew Vasquez authored and James Bottomley committed Jan 17, 2010
1 parent 0248114 commit ff6959a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f08b7251c40090b8c522a306642944cd7322eebb
refs/heads/master: 368bbe077739fa1ef6fc0195b2810ed50ef87df6
3 changes: 3 additions & 0 deletions trunk/drivers/scsi/qla2xxx/qla_sup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ff6959a

Please sign in to comment.